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

Enhance Constant Folding to propagate constants for simple expressions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.14.0
    • 0.14.0
    • Logical Optimizer
    • None

    Description

      currently it propagates only for projects, can be enhanced to propagate for simple expressions like casts, e.g,

      SELECT src1.key, src1.key + 1, src2.value FROM src src1 join src src2 ON src1.key = src2.key AND cast(src1.key as double) = 86; 
      

      Attachments

        1. HIVE-8492.1.patch
          11 kB
          Ashutosh Chauhan
        2. HIVE-8492.patch
          8 kB
          Ashutosh Chauhan

        Issue Links

          Activity

            People

              ashutoshc Ashutosh Chauhan
              ashutoshc Ashutosh Chauhan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: