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

Support for always true or false predicates in filters #10601

Open
elonazoulay opened this issue Apr 13, 2023 · 3 comments
Open

Support for always true or false predicates in filters #10601

elonazoulay opened this issue Apr 13, 2023 · 3 comments

Comments

@elonazoulay
Copy link
Contributor

Feature request:
Add support for always true or false in filters. This will facilitate autogenerated queries by other bi tools to work.
Some examples:
This may be the query generated (even though the TRUE can be elided, it may be autogenerated by a tool):

SELECT * FROM table WHERE (TRUE) AND (a = 3)

support for 1=0 or 1=1 (some bi tools use this form to generate predicates):

SELECT * FROM table WHERE (1 = 0)
@elonazoulay
Copy link
Contributor Author

Related to #10600

@Jackie-Jiang
Copy link
Contributor

This issue should be solved with #10444. Can you verify if it works?

@elonazoulay
Copy link
Contributor Author

Awesome! Will do. For the trino connector we will have to wait until the next release though (for the maven artifacts).
Thanks @Jackie-Jiang !

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

2 participants