godfreyhe commented on a change in pull request #10119: [FLINK-14656]
[table-planner-blink] blink planner should also fetch catalog statistics for
permanent CatalogTableImpl
URL: https://github.com/apache/flink/pull/10119#discussion_r343969581
##########
File path:
flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/catalog/DatabaseCalciteSchema.java
##########
@@ -136,7 +136,7 @@ private Table convertTemporaryTable(
return convertSinkTable(connectorTable);
}
} else if (table instanceof CatalogTable) {
- return convertCatalogTable(tablePath, (CatalogTable)
table, null);
+ return convertCatalogTable(tablePath, (CatalogTable)
table, null, TableStats.UNKNOWN);
Review comment:
That is also my concern: users could also store a `ConnectorCatalogTable`
instance into a `Catalog` by `Catalog#createTable` (not by
`TableEnvironment#fromTableSource` or `TableEnvironment#registerTableSource`)
if the `ConnectorCatalogTable` instance is serializable
(`GenericInMemoryCatalog` even does not need serializable object). should we
prevent users from storing `ConnectorCatalogTable` instance into a `Catalog` ?
or should we clear that `ConnectorCatalogTable` could only be used for
temporary table ?
----------------------------------------------------------------
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