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

gopalv 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 acaa98c  HIVE-21815: Stats in ORC file are parsed twice (Krisztian 
Kasa, reviewed by Gopal V)
acaa98c is described below

commit acaa98c5e40518b76a71c85aea0a84d1295b5ef2
Author: Krisztian Kasa <[email protected]>
AuthorDate: Wed Jun 12 19:19:13 2019 -0700

    HIVE-21815: Stats in ORC file are parsed twice (Krisztian Kasa, reviewed by 
Gopal V)
    
    Signed-off-by: Gopal V <[email protected]>
---
 ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcInputFormat.java | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

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 3878bba..707e38c 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
@@ -1728,9 +1728,12 @@ public class OrcInputFormat implements 
InputFormat<NullWritable, OrcStruct>,
         if (context.cacheStripeDetails) {
           context.footerCache.put(new FooterCacheKey(fsFileId, 
file.getPath()), orcTail);
         }
+        stripes = orcReader.getStripes();
+        stripeStats = orcReader.getStripeStatistics();
+      } else {
+        stripes = orcTail.getStripes();
+        stripeStats = orcTail.getStripeStatistics();
       }
-      stripes = orcTail.getStripes();
-      stripeStats = orcTail.getStripeStatistics();
       fileTypes = orcTail.getTypes();
       TypeDescription fileSchema = OrcUtils.convertTypeFromProtobuf(fileTypes, 
0);
       Reader.Options readerOptions = new Reader.Options(context.conf);

Reply via email to