diff --git a/runtime/src/main/java/io/dingodb/expr/runtime/op/BinaryIntervalOp.java b/runtime/src/main/java/io/dingodb/expr/runtime/op/BinaryIntervalOp.java index 6b554f6d..f27c8070 100644 --- a/runtime/src/main/java/io/dingodb/expr/runtime/op/BinaryIntervalOp.java +++ b/runtime/src/main/java/io/dingodb/expr/runtime/op/BinaryIntervalOp.java @@ -64,14 +64,12 @@ public static IntervalType buildInterval(BigDecimal value0, IntervalType value1) ((IntervalHourType.IntervalHour) value1).elementType ); } else if (value1 instanceof IntervalMinuteType.IntervalMinute) { - return new IntervalHourType.IntervalHour( + return new IntervalMinuteType.IntervalMinute( new BigDecimal(Math.multiplyExact(value0.longValue(), 60 * 1000)), ((IntervalMinuteType.IntervalMinute) value1).elementType ); } else if (value1 instanceof IntervalSecondType.IntervalSecond) { return new IntervalSecondType.IntervalSecond( - - new BigDecimal(Math.multiplyExact(value0.longValue(), 1000)), ((IntervalSecondType.IntervalSecond) value1).elementType );