[fix](orc) fix the count(*) pushdown issue in orc format (#24446)

In previous, when querying hive table in orc format, and the file is splitted.
the result of select count(*) may be multiple of the real row number.

This is because the number of rows should be got after orc strip prune,
otherwise, it may return wrong result
This commit is contained in:
Mingyu Chen
2023-09-16 09:57:39 +08:00
committed by GitHub
parent cac089c7cd
commit 4dad7c94da
6 changed files with 89 additions and 5 deletions

View File

@ -70,7 +70,7 @@ public class HdfsTableValuedFunction extends ExternalFileTableValuedFunction {
// because HADOOP_FS_NAME contains upper and lower case
locationProperties.put(HdfsResource.HADOOP_FS_NAME, params.get(key));
} else {
throw new AnalysisException(key + " is invalid property");
locationProperties.put(key, params.get(key));
}
}