[CALCITE-6714] Cast literal to interval gives the wrong result if lit… #26
Annotations
2 errors and 1 warning
Test:
task ':core:autostyleJavaCheck'#L1
Execution failed for task ':core:autostyleJavaCheck':
See 'What went wrong' below
|
Test
Execution failed for task ':core:autostyleJavaCheck'.
> The following files have format violations:
core/src/main/java/org/apache/calcite/rex/RexBuilder.java
@@ -1341,8 +1341,8 @@
break;
assert o instanceof BigDecimal;
if (type instanceof IntervalSqlType) {
-········o·=·((BigDecimal)·o).multiply(␊
-············((IntervalSqlType)·type).getIntervalQualifier().getUnit().multiplier);␊
+········o·=␊
+············((BigDecimal)·o).multiply(((IntervalSqlType)·type).getIntervalQualifier().getUnit().multiplier);␊
typeName = type.getSqlTypeName();
} else if (type.getScale() != RelDataType.SCALE_NOT_SPECIFIED) {
o = ((BigDecimal) o).setScale(type.getScale(), typeFactory.getTypeSystem().roundingMode());
Run './gradlew autostyleApply' to fix the violations.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading