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

[hive] branch master updated: HIVE-22473: Avoid reading table as ACID when table name is starting with "delta", but table is not transactional (Laszlo Pinter, reviewed by Peter Vary and Adam Szita)

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

szita 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 7cf4679  HIVE-22473: Avoid reading table as ACID when table name is starting with "delta", but table is not transactional (Laszlo Pinter, reviewed by Peter Vary and Adam Szita)
7cf4679 is described below

commit 7cf46790b8fd1513304bebd2673b13639316e523
Author: Laszlo Pinter <lp...@cloudera.com>
AuthorDate: Mon Nov 11 13:21:04 2019 +0100

    HIVE-22473: Avoid reading table as ACID when table name is starting with "delta", but table is not transactional (Laszlo Pinter, reviewed by Peter Vary and Adam Szita)
---
 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 f72705f..8b2890b 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
@@ -1722,7 +1722,7 @@ public class OrcInputFormat implements InputFormat<NullWritable, OrcStruct>,
         Reader orcReader = OrcFile.createReader(file.getPath(),
             OrcFile.readerOptions(context.conf)
                 .filesystem(fs)
-                .maxLength(AcidUtils.getLogicalLength(fs, file)));
+                .maxLength(context.isAcid ? AcidUtils.getLogicalLength(fs, file) : file.getLen()));
         orcTail = new OrcTail(orcReader.getFileTail(), orcReader.getSerializedFileFooter(),
             file.getModificationTime());
         if (context.cacheStripeDetails) {