From fb60da917db94d7c80263426b3fe9ae998e906ff Mon Sep 17 00:00:00 2001 From: Laksh Singla Date: Fri, 3 Nov 2023 15:43:23 +0530 Subject: [PATCH] codeql --- .../calcite/sql/type/CastedLiteralOperandTypeCheckers.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sql/src/main/java/org/apache/calcite/sql/type/CastedLiteralOperandTypeCheckers.java b/sql/src/main/java/org/apache/calcite/sql/type/CastedLiteralOperandTypeCheckers.java index 95973d08c565..1e6ec7bbfdc3 100644 --- a/sql/src/main/java/org/apache/calcite/sql/type/CastedLiteralOperandTypeCheckers.java +++ b/sql/src/main/java/org/apache/calcite/sql/type/CastedLiteralOperandTypeCheckers.java @@ -148,10 +148,6 @@ private static SqlLiteral fetchPrimitiveLiteralFromCasts(SqlNode node) return (SqlLiteral) node; } - if (SqlUtil.isLiteral(node, false)) { - return (SqlLiteral) node; - } - switch (node.getKind()) { case CAST: return fetchPrimitiveLiteralFromCasts(((SqlCall) node).operand(0));