Aitozi commented on code in PR #21522:
URL: https://github.com/apache/flink/pull/21522#discussion_r1137123345
##########
flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/connectors/hive/HiveTableSource.java:
##########
@@ -348,13 +330,16 @@ public TableStats reportStatistics() {
inputSplits.stream()
.map(FileSourceSplit::path)
.collect(Collectors.toList()),
-
catalogTable.getSchema().toRowDataType());
+ catalogTable
+ .getResolvedSchema()
+ .toPhysicalRowDataType());
} else {
// If HiveInputFormat's variable useMapRedReader is true,
Hive using MapRed
// InputFormat to read data.
tableStats =
getMapRedInputFormatStatistics(
- inputSplits,
catalogTable.getSchema().toRowDataType());
+ inputSplits,
+
catalogTable.getResolvedSchema().toPhysicalRowDataType());
Review Comment:
ditto
--
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]