Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-20692

Enable folding of NOT x IS (NOT) [TRUE|FALSE] expressions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1
    • CBO
    • None

    Description

      Expressions like: not ((a>0) is not true) could be rewritten to (a>0) is true.

      However currently this doesn't happen because some of these functions are not translated for Calcite.

      create table t (a integer);
      explain select not ((a>0) is not true) from t group by a;
      [...]
      expressions: (not (_col0 > 0) is not true) (type: boolean) |
      [...]
      

      Attachments

        1. HIVE-20692.01.patch
          19 kB
          Zoltan Haindrich
        2. HIVE-20692.01.patch
          19 kB
          Zoltan Haindrich
        3. HIVE-20692.01.patch
          19 kB
          Zoltan Haindrich

        Activity

          People

            kgyrtkirk Zoltan Haindrich
            kgyrtkirk Zoltan Haindrich
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: