starocean999 opened a new pull request, #23171:
URL: https://github.com/apache/doris/pull/23171

   ## Proposed changes
   consider sql "select * from test_simplify_in_predicate_t where a in 
('1992-01-31', '1992-02-01', '1992-02-02', '1992-02-03', '1992-02-04');"
   before:
   
   ```
   |   0:VOlapScanNode                                                          
                                                                                
                                            |
   |      TABLE: 
default_cluster:bugfix.test_simplify_in_predicate_t(test_simplify_in_predicate_t),
 PREAGGREGATION: OFF. Reason: No aggregate on scan.                             
                         |
   |      PREDICATES: CAST(a[#0] AS DATETIMEV2(0)) IN ('1992-01-31 00:00:00', 
'1992-02-01 00:00:00', '1992-02-02 00:00:00', '1992-02-03 00:00:00', 
'1992-02-04 00:00:00') AND __DORIS_DELETE_SIGN__[#1] = 0 |
   |      partitions=0/1, tablets=0/0, tabletList=                              
                                                                                
                                            |
   |      cardinality=1, avgRowSize=0.0, numNodes=1                             
                                                                                
                                            |
   |      pushAggOp=NONE                                                        
                                                                                
                                            |
   |      projections: a[#0]                                                    
                                                                                
                                            |
   |      project output tuple id: 1                                            
                                                                                
                                            |
   |      tuple ids: 0  
   ```
   after:
   
   ```
   |   0:VOlapScanNode                                                          
                                                                       |
   |      TABLE: 
default_cluster:bugfix.test_simplify_in_predicate_t(test_simplify_in_predicate_t),
 PREAGGREGATION: OFF. Reason: No aggregate on scan. |
   |      PREDICATES: a[#0] IN ('1992-01-31', '1992-02-01', '1992-02-02', 
'1992-02-03', '1992-02-04') AND __DORIS_DELETE_SIGN__[#1] = 0                |
   |      partitions=0/1, tablets=0/0, tabletList=                              
                                                                       |
   |      cardinality=1, avgRowSize=0.0, numNodes=1                             
                                                                       |
   |      pushAggOp=NONE                                                        
                                                                       |
   |      projections: a[#0]                                                    
                                                                       |
   |      project output tuple id: 1                                            
                                                                       |
   |      tuple ids: 0  
   
   ```
   <!--Describe your changes.-->
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[d...@doris.apache.org](mailto:d...@doris.apache.org) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to