You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by pv...@apache.org on 2019/12/06 12:24:37 UTC

[hive] branch master updated: HIVE-22582: Avoid reading table as ACID when table name is starting with "delta" , but table is not transactional and BI Split Strategy is used (Aditya Shah reviewed by Laszlo Pinter and Peter Vary)

This is an automated email from the ASF dual-hosted git repository.

pvary pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new e6ef282  HIVE-22582: Avoid reading table as ACID when table name is starting with "delta" , but table is not transactional and BI Split Strategy is used (Aditya Shah reviewed by Laszlo Pinter and Peter Vary)
e6ef282 is described below

commit e6ef2826879fbb9b3ec7987255dda8ec14831a05
Author: Aditya Shah <ad...@qubole.com>
AuthorDate: Fri Dec 6 13:23:46 2019 +0100

    HIVE-22582: Avoid reading table as ACID when table name is starting with "delta" , but table is not transactional and BI Split Strategy is used (Aditya Shah reviewed by Laszlo Pinter and Peter Vary)
---
 ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcInputFormat.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcInputFormat.java b/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcInputFormat.java
index 76bf283..76984ab 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcInputFormat.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcInputFormat.java
@@ -1112,7 +1112,7 @@ public class OrcInputFormat implements InputFormat<NullWritable, OrcStruct>,
         }
 
         FileStatus fileStatus = file.getFileStatus();
-        long logicalLen = AcidUtils.getLogicalLength(fs, fileStatus);
+        long logicalLen = isAcid ? AcidUtils.getLogicalLength(fs, fileStatus) : fileStatus.getLen();
         if (logicalLen != 0) {
           Object fileKey = isDefaultFs ? file.getFileId() : null;
           if (fileKey == null && allowSyntheticFileIds) {