vaticle / typedb

TypeDB: the polymorphic database powered by types
https://typedb.com
Mozilla Public License 2.0
3.72k stars 337 forks source link

Fix application of query bounds through match-fetch queries #7049

Closed flyingsilverfin closed 2 months ago

flyingsilverfin commented 2 months ago

Usage and product changes

We fix a bug that was revealed when using match-fetch queries with subqueries that had nested patterns. This change now correctly applies 1) filtering to a parent match query so that the right outputs are generated 2) passes the bounds received from a preceding query correctly into all child patterns of subsequent query clauses.

Implementation