wwj6591812 commented on code in PR #4330:
URL: https://github.com/apache/paimon/pull/4330#discussion_r1803343629
##########
paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/source/DataTableSource.java:
##########
@@ -114,6 +119,58 @@ public TableStats reportStatistics() {
return TableStats.UNKNOWN;
}
+ Optional<Statistics> optionStatistics = table.statistics();
+ if (optionStatistics.isPresent()) {
+ Statistics statistics = optionStatistics.get();
+ if (statistics.mergedRecordCount().isPresent()) {
+ Map<String, ColumnStats> flinkColStats = new HashMap<>();
Review Comment:
Map<String, ColumnStats> flinkColStats = new
HashMap<>(statistics.colStats().size());
--
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]