snuyanzin commented on code in PR #26862: URL: https://github.com/apache/flink/pull/26862#discussion_r2248486005
########## flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/functions/RowFunctionITCase.java: ########## @@ -83,6 +92,36 @@ Stream<TestSetSpec> getTestSetSpecs() { .notNull())); } + @Test + public void testCastToSmallIntAndTinyIntIfInputIsNonLiteral() throws Exception { + final TableEnvironment env = TableEnvironment.create(EnvironmentSettings.inStreamingMode()); + + TableResult result = + env.executeSql( + "SELECT ROW(CAST(a AS SMALLINT), CAST(b AS TINYINT)) FROM (VALUES (1, 2)) AS T(a, b)"); Review Comment: ```suggestion "SELECT CAST(ROW(CAST(a AS SMALLINT), CAST(b AS TINYINT)) AS ROW<a SMALLINT, b TINYINT>) AS `row` FROM (VALUES (1, 2)) AS T(a, b)"); ``` to have nicer names instead of `EXPR$` -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org