clintropolis opened a new pull request, #18512:
URL: https://github.com/apache/druid/pull/18512

   ### Description
   Following up on #18507, which vectorized `if`, this PR vectorizes 
`case_searched`, which is a pretty nice perf improvement:
   
   ```
   SELECT CASE WHEN MOD(long1, 2) = 0 THEN -1 WHEN MOD(long1, 2) = 1 THEN long2 
/ MOD(long1, 2) ELSE long3 END FROM expressions GROUP BY 1
   
   Benchmark                        (complexCompression)  
(deferExpressionDimensions)  (query)  (rowsPerSegment)  (schemaType)  
(storageType)  (stringEncoding)  (vectorize)  Mode  Cnt    Score   Error  Units
   SqlExpressionBenchmark.querySql                   lz4         
fixedWidthNonNumeric       58           1500000      explicit           MMAP    
          UTF8        false  avgt    5  270.818 ± 7.394  ms/op
   SqlExpressionBenchmark.querySql                   lz4         
fixedWidthNonNumeric       58           1500000      explicit           MMAP    
          UTF8        force  avgt    5   52.930 ± 2.563  ms/op
   ```


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