liyubin117 commented on code in PR #21182:
URL: https://github.com/apache/flink/pull/21182#discussion_r1044033884
##########
flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/connectors/hive/HiveTableFactory.java:
##########
@@ -49,7 +47,6 @@ public List<String> supportedProperties() {
@Override
public TableSource createTableSource(TableSourceFactory.Context context) {
CatalogTable table = checkNotNull(context.getTable());
- Preconditions.checkArgument(table instanceof CatalogTableImpl);
Review Comment:
Because the new created table is a instance of ResolvedCatalogTable which
could provide `Schema`.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]