-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enable path expressions in infix filter after
exists
predicate (
#875) if a path expression is detected in a infix filter of an association which follows an `exists` predicate, we add the filter expression as a whole to the `exists (<subquery>)` and then recursively transform it with `cqn4sql` to get the proper joins. Usually, transforming the `exists <subquery>` is not necessary, because the `where` clause is already well formed -> there is a mechanism to flag a path expression in this special case as such. this is just a simple poc… more tests need to be added. - [x] `exists books[genre.name = 'fiction' and exists author]` -> mixed with sibiling `exists` - [x] `exists books[uppercase(genre.name) = 'FICTION']` -> detect path expressions anywhere - [x] `SELECT from Authors:books[genre.name = 'FICTION']` → What about scoped queries? + we dont tacke them, yet fix: nested exists wrapped in xpr reported in cap/cdsnode/issues/2194
- Loading branch information
1 parent
6684436
commit 7e50359
Showing
7 changed files
with
321 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.