xiedeyantu commented on code in PR #5018:
URL: https://github.com/apache/calcite/pull/5018#discussion_r3407814923
##########
core/src/test/java/org/apache/calcite/test/SqlValidatorTest.java:
##########
@@ -2197,6 +2197,32 @@ void testLikeAndSimilarFails() {
.fails("ROW\\(\\* EXCLUDE/EXCEPT list\\) cannot exclude all columns");
}
+ /** Test case for
+ * <a
href="https://issues.apache.org/jira/browse/CALCITE-7603">[CALCITE-7603]
+ * Support ROW constructors that name fields</a>. */
+ @Test void testRowWithFieldNames() {
+ // All fields named: the returned type should use the specified names
+ sql("select row(1 as a, 'hello' as b) from emp")
Review Comment:
Could you add a case like this?
```
select row(1 a, 'hello' b) from emp
```
--
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]