Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-12899 Bring query optimization time down
  3. HIVE-13942

Correctness of CASE folding in the presence of NULL values

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.1, 2.2.0
    • 2.1.0
    • CBO
    • None

    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

        1. HIVE-13942.patch
          17 kB
          jcamachorodriguez
        2. HIVE-13942.01.patch
          18 kB
          jcamachorodriguez

        Issue Links

          Activity

            People

              jcamacho Jesús Camacho Rodríguez
              jcamacho Jesús Camacho Rodríguez
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: