Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6.0
    • Component/s: None
    • Labels:
      None

      Description

      select interval_day_time('2 1:2:3') from src limit 1;
      

      Hive supports sub-millisecond intervals, i.e., nano-seconds. For example, Hive will translate this into a RexLiteral of
      176523000.000000, which is the millisecond representation of "2 1:2:3".
      Then when it goes through the ReduceExpressionRule, RexReplacer will call
      RexBuilder to make a cast. And in the L527 of RexBuilder, the value of
      176523000.000000 will be divided by the multiplier and becomes the new
      value. However, Hive does not want any multiplier as it is already in
      millisecond format. Thus, a candidate solution here is to add a millisecond time unit and make its multiplier as 1.

        Attachments

          Activity

            People

            • Assignee:
              julianhyde Julian Hyde
              Reporter:
              pxiong Pengcheng Xiong
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: