swuferhong commented on code in PR #20084:
URL: https://github.com/apache/flink/pull/20084#discussion_r934370330
##########
flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/FileSystemTableSource.java:
##########
@@ -359,11 +359,19 @@ public TableStats reportStatistics() {
splits.stream().map(FileSourceSplit::path).collect(Collectors.toList());
if (bulkReaderFormat instanceof
FileBasedStatisticsReportableInputFormat) {
- return ((FileBasedStatisticsReportableInputFormat)
bulkReaderFormat)
- .reportStatistics(files, producedDataType);
+ TableStats tableStats =
+ ((FileBasedStatisticsReportableInputFormat)
bulkReaderFormat)
+ .reportStatistics(files, producedDataType);
+ return limit == null
Review Comment:
> add some log for exception case
done!
--
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]