Skip to content

Commit

Permalink
[CALCITE-5865] ClassCastException with FLOOR and CEIL on conformances…
Browse files Browse the repository at this point in the history
… that are not builtin (follow-up)
  • Loading branch information
rubenada committed Jul 21, 2023
1 parent 94b78e9 commit bdfb170
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2702,7 +2702,7 @@ public static SqlOperator like(boolean negated, boolean caseSensitive) {
/** 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;
Expand Down

0 comments on commit bdfb170

Please sign in to comment.