JingsongLi commented on a change in pull request #9909: [FLINK-14381][table] Partition field names should be got from CatalogTable instead of source/sink URL: https://github.com/apache/flink/pull/9909#discussion_r338856361
########## File path: flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/catalog/DatabaseCalciteSchema.java ########## @@ -143,7 +143,8 @@ private Table convertConnectorTable( return new TableSourceTable<>( tableSource, isStreamingMode, - FlinkStatistic.builder().tableStats(tableStats).build()); + FlinkStatistic.builder().tableStats(tableStats).build(), + null); Review comment: Hi @KurtYoung , After temporary table support, every table should have `CatalogTable`. I think we can keep not Option. Hi @wuchong , I agree with kurt, Actually, source may also need to know compute columns. It needs to know which fields it does not read. (except compute columns expressions) ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services