Skip to content

[CALCITE-6714] Cast literal to interval gives the wrong result if lit… #26

[CALCITE-6714] Cast literal to interval gives the wrong result if lit…

[CALCITE-6714] Cast literal to interval gives the wrong result if lit… #26

Triggered via push December 4, 2024 11:19
Status Failure
Total duration 18m 6s
Artifacts

main.yml

on: push
Windows (JDK 8)
5m 48s
Windows (JDK 8)
Windows (JDK 17)
7m 46s
Windows (JDK 17)
Windows (JDK 21)
5m 51s
Windows (JDK 21)
Linux (JDK 8, oldest Guava, America/New_York Timezone)
4m 40s
Linux (JDK 8, oldest Guava, America/New_York Timezone)
Linux (JDK 8, latest Guava, America/New_York Timezone)
5m 57s
Linux (JDK 8, latest Guava, America/New_York Timezone)
Linux (JDK 11, Pacific/Chatham Timezone)
4m 28s
Linux (JDK 11, Pacific/Chatham Timezone)
Linux (JDK 17)
6m 42s
Linux (JDK 17)
Linux (JDK 21)
6m 36s
Linux (JDK 21)
Linux (JDK 23)
4m 29s
Linux (JDK 23)
Linux (JDK 11, Avatica main)
8m 24s
Linux (JDK 11, Avatica main)
macOS (JDK 21)
17m 51s
macOS (JDK 21)
ErrorProne (JDK 11, latest Guava)
4m 35s
ErrorProne (JDK 11, latest Guava)
CheckerFramework (JDK 11)
11m 8s
CheckerFramework (JDK 11)
CheckerFramework (JDK 11, oldest Guava)
11m 18s
CheckerFramework (JDK 11, oldest Guava)
Linux (JDK 8) Slow Tests
0s
Linux (JDK 8) Slow Tests
Druid Tests
7m 23s
Druid Tests
Fit to window
Zoom out
Zoom in

Annotations

22 errors and 11 warnings
Linux (JDK 11, Pacific/Chatham Timezone): task ':core:autostyleJavaCheck'#L1
Execution failed for task ':core:autostyleJavaCheck': See 'What went wrong' below
Linux (JDK 11, Pacific/Chatham Timezone)
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.
Linux (JDK 23): task ':core:autostyleJavaCheck'#L1
Execution failed for task ':core:autostyleJavaCheck': See 'What went wrong' below
Linux (JDK 23)
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.
Linux (JDK 8, oldest Guava, America/New_York Timezone): task ':core:autostyleJavaCheck'#L1
Execution failed for task ':core:autostyleJavaCheck': See 'What went wrong' below
Linux (JDK 8, oldest Guava, America/New_York Timezone)
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.
Windows (JDK 8): task ':core:autostyleJavaCheck'#L1
Execution failed for task ':core:autostyleJavaCheck': See 'What went wrong' below
Windows (JDK 8)
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(\r\n - ((IntervalSqlType) type).getIntervalQualifier().getUnit().multiplier);\r\n + o =\r\n + ((BigDecimal) o).multiply(((IntervalSqlType) type).getIntervalQualifier().getUnit().multiplier);\r\n 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.
Windows (JDK 21): task ':core:autostyleJavaCheck'#L1
Execution failed for task ':core:autostyleJavaCheck': See 'What went wrong' below
Windows (JDK 21)
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(\r\n - ((IntervalSqlType) type).getIntervalQualifier().getUnit().multiplier);\r\n + o =\r\n + ((BigDecimal) o).multiply(((IntervalSqlType) type).getIntervalQualifier().getUnit().multiplier);\r\n 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.
Linux (JDK 8, latest Guava, America/New_York Timezone): task ':core:autostyleJavaCheck'#L1
Execution failed for task ':core:autostyleJavaCheck': See 'What went wrong' below
Linux (JDK 8, latest Guava, America/New_York Timezone)
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.
Linux (JDK 21): task ':core:autostyleJavaCheck'#L1
Execution failed for task ':core:autostyleJavaCheck': See 'What went wrong' below
Linux (JDK 21)
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.
Linux (JDK 17): task ':core:autostyleJavaCheck'#L1
Execution failed for task ':core:autostyleJavaCheck': See 'What went wrong' below
Linux (JDK 17)
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.
Windows (JDK 17): task ':core:autostyleJavaCheck'#L1
Execution failed for task ':core:autostyleJavaCheck': See 'What went wrong' below
Windows (JDK 17)
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(\r\n - ((IntervalSqlType) type).getIntervalQualifier().getUnit().multiplier);\r\n + o =\r\n + ((BigDecimal) o).multiply(((IntervalSqlType) type).getIntervalQualifier().getUnit().multiplier);\r\n 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.
Linux (JDK 11, Avatica main): task ':core:autostyleJavaCheck'#L1
Execution failed for task ':core:autostyleJavaCheck': See 'What went wrong' below
Linux (JDK 11, Avatica main)
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.
macOS (JDK 21): task ':core:autostyleJavaCheck'#L1
Execution failed for task ':core:autostyleJavaCheck': See 'What went wrong' below
macOS (JDK 21)
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.
Linux (JDK 11, Pacific/Chatham Timezone)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Linux (JDK 23)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ErrorProne (JDK 11, latest Guava)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Linux (JDK 8, oldest Guava, America/New_York Timezone)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Linux (JDK 8, latest Guava, America/New_York Timezone)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Linux (JDK 21)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Linux (JDK 17)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Druid Tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Linux (JDK 11, Avatica main)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
CheckerFramework (JDK 11)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
CheckerFramework (JDK 11, oldest Guava)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636