julianhyde commented on a change in pull request #1587: [CALCITE-3272] Support
TUMBLE as Table Valued Function including an enumerable implementation,
stream.iq and DESCRIPTOR
URL: https://github.com/apache/calcite/pull/1587#discussion_r349967020
##########
File path: core/src/test/java/org/apache/calcite/test/SqlValidatorTest.java
##########
@@ -10077,6 +10077,13 @@ private void checkCustomColumnResolving(String table)
{
.fails("Column 'F0\\.C1\\.NOTFOUND' not found in table '" + table +
"'");
}
+ @Test public void testDescriptor() {
+ sql("select * from table(tumble(table orders, descriptor(rowtime)))").ok();
+ sql("select * from table(tumble(table orders,
descriptor(column_not_exist)))")
+ .expr("select * from table(tumble(table orders,
descriptor(^column_not_exist^)))")
+ .fails("Unknown identifier 'COLUMN_NOT_EXIST'");
Review comment:
rather than `sql("q1").expr("q2")` write `expr("q2")`
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services