[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:
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user