Github user fhueske commented on a diff in the pull request: https://github.com/apache/flink/pull/2319#discussion_r75479361 --- Diff: flink-libraries/flink-table/src/test/scala/org/apache/flink/api/scala/batch/sql/SelectITCase.scala --- @@ -146,4 +146,22 @@ class SelectITCase( tEnv.sql(sqlQuery) } + @Test + def testSelectWithCompositeType(): Unit = { + val env = ExecutionEnvironment.getExecutionEnvironment + val tEnv = TableEnvironment.getTableEnvironment(env, config) + + val sqlQuery = "SELECT MyTable.a2, MyTable.a1._2 FROM MyTable" --- End diff -- I found leaving out the table name (or table alias) leads to a Calcite exception which is hard to understand. Can we throw a `TableException` instead which is more helpful for the user?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---