cloud-fan commented on issue #23171: [SPARK-26205][SQL] Optimize In for bytes, 
shorts, ints
URL: https://github.com/apache/spark/pull/23171#issuecomment-447611201
 
 
   I think what we can do is:
   1. add a new config `optimizeInWithLiteralList`, if it's true, turn `In` to 
`OptimizedIn` if list is all literal.
   2. `OptimizedIn` has a parameter `inSetThrehold`, which is passed when 
constructing `OptimizedIn`. The `inSetThrehold` decides whether we want to use 
switch based optimization or hash set.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to