This is an automated email from the ASF dual-hosted git repository. rubenql pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/calcite.git
The following commit(s) were added to refs/heads/main by this push: new bdfb17029f [CALCITE-5865] ClassCastException with FLOOR and CEIL on conformances that are not builtin (follow-up) bdfb17029f is described below commit bdfb17029f7e205f895dc3dfd0f37c8ff2520823 Author: rubenada <rube...@gmail.com> AuthorDate: Fri Jul 21 10:20:12 2023 +0100 [CALCITE-5865] ClassCastException with FLOOR and CEIL on conformances that are not builtin (follow-up) --- core/src/main/java/org/apache/calcite/sql/fun/SqlStdOperatorTable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/apache/calcite/sql/fun/SqlStdOperatorTable.java b/core/src/main/java/org/apache/calcite/sql/fun/SqlStdOperatorTable.java index 86a7cb0a0a..65bb44e9e7 100644 --- a/core/src/main/java/org/apache/calcite/sql/fun/SqlStdOperatorTable.java +++ b/core/src/main/java/org/apache/calcite/sql/fun/SqlStdOperatorTable.java @@ -2702,7 +2702,7 @@ public class SqlStdOperatorTable extends ReflectiveSqlOperatorTable { /** Returns the operator for {@code FLOOR} and {@code CEIL} with given floor flag * and library. */ public static SqlOperator floorCeil(boolean floor, SqlConformance conformance) { - if (SqlConformanceEnum.BIG_QUERY.equals(conformance)) { + if (SqlConformanceEnum.BIG_QUERY == conformance) { return floor ? SqlLibraryOperators.FLOOR_BIG_QUERY : SqlLibraryOperators.CEIL_BIG_QUERY; } else { return floor ? SqlStdOperatorTable.FLOOR : SqlStdOperatorTable.CEIL;