dssysolyatin commented on code in PR #4553:
URL: https://github.com/apache/calcite/pull/4553#discussion_r2376843121
##########
core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java:
##########
@@ -2204,6 +2208,25 @@ protected void inferUnknownTypes(
}
}
+ private boolean isRowSqlNodeList(final RelDataType inferredType, final
SqlNodeList nodeList) {
+ return inferredType.isStruct() && !nodeList.isEmpty()
+ && SqlKind.ROW == nodeList.get(0).getKind();
Review Comment:
Consider a case
```sql
SELECT e.empno,r.r
FROM emp AS e, LATERAL (SELECT ROW(e.empno, e.ename) AS r) AS r
WHERE ROW(e.empno, e.ename) IN (
r.r,
ROW(?, ?)
);
```
first argument is no longer `SqlKind.ROW`. I would go through each item in
the list separately and check if it is row or something else.
--
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]