JingsongLi commented on a change in pull request #11387:
[FLINK-16343][table-planner-blink] Improve exception message when reading an
unbounded source in batch mode
URL: https://github.com/apache/flink/pull/11387#discussion_r391446416
##########
File path:
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/planner/plan/schema/CatalogSourceTable.scala
##########
@@ -164,10 +164,21 @@ class CatalogSourceTable[T](
} else {
TableFactoryUtil.findAndCreateTableSource(context)
}
+
if (!tableSource.isInstanceOf[StreamTableSource[_]]) {
Review comment:
Using `match case`?
----------------------------------------------------------------
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