apache / pinot

Apache Pinot - A realtime distributed OLAP datastore
https://pinot.apache.org/
Apache License 2.0
5.53k stars 1.3k forks source link

Support for always true or false predicates in filters #10601

Open elonazoulay opened 1 year ago

elonazoulay commented 1 year ago

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 commented 1 year ago

Related to #10600

Jackie-Jiang commented 1 year ago

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

elonazoulay commented 1 year ago

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