zinking commented on a change in pull request #2301:
URL: https://github.com/apache/calcite/pull/2301#discussion_r549050001
##########
File path:
core/src/main/java/org/apache/calcite/sql2rel/StandardConvertletTable.java
##########
@@ -860,6 +861,29 @@ public RexNode convertCall(
: operandTypeChecker.getConsistency();
final List<RexNode> exprs = convertOperands(cx, call, consistency);
RelDataType type = rexBuilder.deriveReturnType(op, exprs);
+
+ //generate relation for `=(Row1,Row2)`
+ if (op.kind == SqlKind.EQUALS) {
+ RexNode expr0 = RexUtil.removeCast(exprs.get(0));
+ RexNode expr1 = RexUtil.removeCast(exprs.get(1));
+ SqlKind expr0Kind = expr0.getKind();
+ SqlKind expr1Kind = expr1.getKind();
+ if (expr0Kind == SqlKind.ROW && expr1Kind == SqlKind.ROW) {
+ RexCall call0 = (RexCall) expr0;
+ RexCall call1 = (RexCall) expr1;
Review comment:
YES
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]