julianhyde commented on a change in pull request #2573:
URL: https://github.com/apache/calcite/pull/2573#discussion_r738867087
##########
File path: core/src/test/java/org/apache/calcite/test/JdbcTest.java
##########
@@ -7742,6 +7742,12 @@ private void checkGetTimestamp(Connection con) throws
SQLException {
assertThat.query(query).returns("EXPR$0=4200000000\n");
}
+ @Test public void testNestedRowType() {
+ CalciteAssert.that().query("select row(row(1, row(2)), row(3), row('a'))
t")
+ .typeIs("[T STRUCT NOT NULL]")
+ .returns("T={{1, {2}}, {3}, {a}}\n");
+ }
+
Review comment:
This test can go in a `.iq` file. Use `!type` and `!ok`.
--
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]