Skip to content

feat: support '>', '<', '>=', '<=', '<>' in all operator#21416

Open
buraksenn wants to merge 2 commits intoapache:mainfrom
buraksenn:support-all-operator
Open

feat: support '>', '<', '>=', '<=', '<>' in all operator#21416
buraksenn wants to merge 2 commits intoapache:mainfrom
buraksenn:support-all-operator

Conversation

@buraksenn
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

Related with #20830 all operator does not support operators above.

What changes are included in this PR?

Adds support for other expressions and add tests

This is a question actually I've checked behaviors of Postgresql and Duckdb about null semantics and continued with the Postgresql behavior. However, I'm not sure if we want this so also put Duckdb outputs. It would be great to have feedback on this

Query PostgreSQL This PR DuckDB
5 = ANY(NULL::INT[]) NULL NULL false
5 <> ANY(NULL::INT[]) NULL NULL false
5 > ANY(NULL::INT[]) NULL NULL false
5 < ANY(NULL::INT[]) NULL NULL false
5 >= ANY(NULL::INT[]) NULL NULL false
5 <= ANY(NULL::INT[]) NULL NULL false
5 = ALL(NULL::INT[]) NULL NULL true
5 > ALL(NULL::INT[]) NULL NULL true
5 < ALL(NULL::INT[]) NULL NULL true

Are these changes tested?

Added slt tests for this and they all pass

Are there any user-facing changes?

Yes user's can now use all operator with this new expressions

@github-actions github-actions bot added sql SQL Planner sqllogictest SQL Logic Tests (.slt) labels Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sql SQL Planner sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support ALL operator

1 participant