YiwenWu commented on code in PR #3856:
URL: https://github.com/apache/calcite/pull/3856#discussion_r1684216098
##########
core/src/main/java/org/apache/calcite/rel/rel2sql/RelToSqlConverter.java:
##########
@@ -397,7 +397,7 @@ private boolean isCommaJoin(Join join) {
public Result visit(Correlate e) {
final Result leftResult =
visitInput(e, 0)
- .resetAlias(e.getCorrelVariable(), e.getRowType());
+ .resetAlias(e.getCorrelVariable(), e.getInput(0).getRowType());
Review Comment:
It may be that fewer cases are used. Correlate is similar to Join, with
leftNode and rightNode, among which e.getInput(0) is equivalent to leftNode.
Therefore the `RowType` of e.getInput(0) is a subset of Correlate.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]