Affects Version/s: None
Fix Version/s: 1.6.0
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.