Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
- IF is not part of the sql standard; however given its special form its simpler - and currently in Hive it also has vectorized support
- people writing standard sql may write: CASE WHEN member=1 THEN attr+1 else attr+2 END which is essentially an if.
The idea is to rewrite IFs to CASEs for the cbo; and recognize simple "CASE"-s as IFs to get vectorization on them if possible
Attachments
Attachments
Issue Links
- links to