rluvaton opened a new pull request, #18203:
URL: https://github.com/apache/datafusion/pull/18203

   ## Which issue does this PR close?
   
   N/A
   
   But extracted from:
   - #18183 
   
   ## Rationale for this change
   
   I want to add optimization for lookup based `CASE WHEN` like:
   
   ```sql
   CASE company
       WHEN 1 THEN 'Apple'
       WHEN 5 THEN 'Samsung'
       WHEN 2 THEN 'Motorola'
       WHEN 3 THEN 'LG'
       ELSE 'Other'
   END
   ```
   
   ## What changes are included in this PR?
   
   Added multiple benchmarks for testing lookup table from int to string and 
vice verca
   
   with different size of lookup table (5, 10, 20), different probabilities for 
having values generated to exist in the lookup map, and probabilities for the 
number of nulls
   
   ## Are these changes tested?
   
   N/A
   
   ## Are there any user-facing changes?
   
   nope


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