abstractdog commented on code in PR #3607:
URL: https://github.com/apache/hive/pull/3607#discussion_r976719135
##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/physical/Vectorizer.java:
##########
@@ -1264,10 +1266,25 @@ private Support[] getVectorizedInputFormatSupports(
try {
InputFormat inputFormat =
FetchOperator.getInputFormatFromCache(inputFileFormatClass, hiveConf);
if (inputFormat instanceof VectorizedInputFormatInterface) {
+ // Special handling for Iceberg tables with ORC format.
+ if
(inputFormat.getClass().getName().contains("HiveIcebergInputFormat")) {
+ boolean onlyOrcFiles = true;
+ Hive hiveDb = Hive.get(hiveConf, false);
+ for (String tableName :
currentOperator.getSchema().getTableNames()) {
+ boolean isORCOnly =
+
"TRUE".equalsIgnoreCase(hiveDb.getTable(tableName).getParameters().get("orc.files.only"));
+ if (!isORCOnly) {
+ onlyOrcFiles = false;
Review Comment:
I guess we should break the loop here
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]