Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for quantified comparison predicates #514

Open
michael-simons opened this issue Jan 17, 2024 · 0 comments
Open

Add support for quantified comparison predicates #514

michael-simons opened this issue Jan 17, 2024 · 0 comments

Comments

@michael-simons
Copy link
Collaborator

From sql2cypher created by lukaseder: neo4j-contrib/sql2cypher#35

I'm currently refactoring jOOQ's internals in order to support quantified comparison predicates: jOOQ/jOOQ#14560

The simplest forms include:

a = ANY (SELECT b FROM t)  -- equivalent to A IN (SELECT b FROM t)
a != ALL (SELECT b FROM t) -- equivalent to A NOT IN (SELECT b FROM t)

Less trivial forms involve:

Most of these can be emulated using EXISTS. jOOQ is already doing that for numerous SQL dialects that don't have full support, so this could be done in this translator as well, once we have EXISTS support in: neo4j-contrib/sql2cypher#14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant