BiteTheDDDDt commented on issue #8588:
URL: 
https://github.com/apache/incubator-doris/issues/8588#issuecomment-1076145307


   Seems this query will calculate with decimal type. vec engine decimal type's 
implement completely different with row engine decimal type's implement.
   
   ```sql
   MySQL [test]> explain verbose select col_955 * 1.0 / col_952 as col from 
fix_float_div;
   
+---------------------------------------------------------------------------------------+
   | Explain String                                                             
           |
   
+---------------------------------------------------------------------------------------+
   | PLAN FRAGMENT 0                                                            
           |
   |  OUTPUT EXPRS:CAST(`col_955` AS DECIMAL(9,0)) * 1.0 / CAST(`col_952` AS 
DECIMAL(9,0)) |
   |   PARTITION: HASH_PARTITIONED: 
`default_cluster:test`.`fix_float_div`.`col_955`       |
   |                                                                            
           |
   |   VRESULT SINK                                                             
           |
   |                                                                            
           |
   |   0:VOlapScanNode                                                          
           |
   |      TABLE: fix_float_div                                                  
           |
   |      PREAGGREGATION: ON                                                    
           |
   |      partitions=1/1                                                        
           |
   |      rollup: fix_float_div                                                 
           |
   |      tabletRatio=1/1                                                       
           |
   |      tabletList=187842                                                     
           |
   |      cardinality=0                                                         
           |
   |      avgRowSize=8.0                                                        
           |
   |      numNodes=1                                                            
           |
   |      tuple ids: 0                                                          
           |
   |                                                                            
           |
   | Tuples:                                                                    
           |
   | TupleDescriptor{id=0, tbl=fix_float_div, byteSize=12, materialized=true}   
           |
   |   SlotDescriptor{id=0, col=col_955, type=INT}                              
           |
   |     parent=0                                                               
           |
   |     materialized=true                                                      
           |
   |     byteSize=4                                                             
           |
   |     byteOffset=4                                                           
           |
   |     nullIndicatorByte=0                                                    
           |
   |     nullIndicatorBit=0                                                     
           |
   |     slotIdx=0                                                              
           |
   |                                                                            
           |
   |   SlotDescriptor{id=1, col=col_952, type=INT}                              
           |
   |     parent=0                                                               
           |
   |     materialized=true                                                      
           |
   |     byteSize=4                                                             
           |
   |     byteOffset=8                                                           
           |
   |     nullIndicatorByte=0                                                    
           |
   |     nullIndicatorBit=1                                                     
           |
   |     slotIdx=1                                                              
           |
   
+---------------------------------------------------------------------------------------+
   ```


-- 
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: [email protected]

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