HappenLee opened a new issue #5086:
URL: https://github.com/apache/incubator-doris/issues/5086


   **Is your feature request related to a problem? Please describe.**
   
   #### case 1:
   Now if we query like
   ```
   select * from test where a in ('a', 'b', 'c') and a is null
   ```
   
   it is obvious 
   ```
   a is null
   ```
   not need push down to Storage Engine. But we **push the conjunct to storage 
engine and do filter again in olap_scanner**.
   
   
   #### case 2:
   Now if we query like
   ```
   select * from test where a in ('a', 'b', 'c') and a is not null
   ```
   
   it is obvious 
   ```
   a is not null
   ```
   not need push down to Storage Engine. But we **push the conjunct to storage 
engine and do filter again in olap_scanner**.
   
   #### case 3:
   Now if we query like
   ```
   select * from test where a is null and a is not null
   ```
   
   it is obvious an empty result
   ```
   a is not null and a is null
   ```
   But we **push the conjunct to storage engine and do filter again in 
olap_scanner**.
   
   **Describe the solution you'd like**
   
   push down the conjunct of 'a is null' and 'a is not null' as other conjuncts 
and do not do query when the query is obvious an empty result.
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to