strongduanmu commented on code in PR #4553:
URL: https://github.com/apache/calcite/pull/4553#discussion_r2437959390
##########
core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java:
##########
@@ -2204,6 +2207,25 @@ protected void inferUnknownTypes(
}
}
+ private boolean inferRowSqlNodeList(final RelDataType inferredType,
+ final SqlValidatorScope scope, final SqlNodeList nodeList) {
+ if (!inferredType.isStruct()) {
+ return false;
+ }
+ boolean inferred = false;
+ for (SqlNode child : nodeList) {
+ if (child instanceof SqlBasicCall && SqlKind.ROW == child.getKind()) {
Review Comment:
Thanks for bringing this up, I might not have considered it before. Can you
give a sql example? I will continue to analyze the possible problems in this
scenario.
--
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]