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

Too many casts results in loss of original string representation for constant

    XMLWordPrintableJSON

Details

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

    Description

      SELECT key, value FROM src WHERE key = cast(86 as double);
      86.0  val_86
      

      With constant propagate off we get different and correct result.

      set hive.optimize.constant.propagation=false;
      SELECT key, value FROM src WHERE key =  cast(86 as double);
      86  val_86
      

      Attachments

        1. HIVE-8555.patch
          5 kB
          Ashutosh Chauhan
        2. HIVE-8555.1.patch
          8 kB
          Ashutosh Chauhan

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: