Description
Introduced in HIVE-13068.
(case when key<'90' then 2 else 4 end) > 3 should not fold to key >= '90', as these two expressions are not equivalent (consider null values). Instead, it should fold to not NVL((key < '90'),false).
This is caused by 1) some methods still calling original RexUtil.simplify method where the bug was originally present, and 2) further improvements needed in HiveRexUtil.simplify.
Attachments
Attachments
Issue Links
- is broken by
-
HIVE-13068 Disable Hive ConstantPropagate optimizer when CBO has optimized the plan II
- Closed
- is related to
-
HIVE-12742 NULL table comparison within CASE does not work as previous hive versions
- Closed
- links to