korlov42 commented on code in PR #1513: URL: https://github.com/apache/ignite-3/pull/1513#discussion_r1069519179
########## modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/prepare/IgniteTypeCoercion.java: ########## @@ -47,6 +49,57 @@ public IgniteTypeCoercion(RelDataTypeFactory typeFactory, SqlValidator validator super(typeFactory, validator); } + /** + * {@inheritDoc} + */ + @Override + public boolean binaryComparisonCoercion(SqlCallBinding binding) { + // Although it is not reflected in the docs, this method is also invoked for MAX, MIN (and other similar operators) + // by ComparableOperandTypeChecker. When that is the case, fallback to default rules. + SqlCall call = binding.getCall(); + if (binding.getOperandCount() != 2 && !SqlKind.BINARY_COMPARISON.contains(call.getKind())) { Review Comment: it there any binary comparison with operands count != 2? -- 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: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org