mihaibudiu commented on code in PR #4553:
URL: https://github.com/apache/calcite/pull/4553#discussion_r2437933523
##########
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:
There are expressions that evaluate to a ROW type that are not ROW
expressions.
For example, a[1], where a is an array of ROW values.
--
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]