mihaibudiu commented on code in PR #4151: URL: https://github.com/apache/calcite/pull/4151#discussion_r1920930981
########## core/src/main/java/org/apache/calcite/sql/dialect/PostgresqlSqlDialect.java: ########## @@ -155,6 +159,17 @@ public PostgresqlSqlDialect(Context context) { } } + @Override public boolean supportsImplicitTypeCoercion(RexCall call) { + final RexNode operand0 = call.getOperands().get(0); + RelDataType callType = call.getType(); + boolean supportImplicit = super.supportsImplicitTypeCoercion(call); + boolean isNumericType = supportImplicit && SqlTypeUtil.isNumeric(callType); + if (isNumericType) { + return false; + } + return supportImplicit && RexUtil.isLiteral(operand0, false); Review Comment: are you sure only literals are a problem? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@calcite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org