You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by "amanraj2520 (via GitHub)" <gi...@apache.org> on 2023/09/04 09:47:36 UTC

[GitHub] [hive] amanraj2520 commented on a diff in pull request #4624: HIVE-27644 : Backport of HIVE-17917, HIVE-21457, HIVE-22582

amanraj2520 commented on code in PR #4624:
URL: https://github.com/apache/hive/pull/4624#discussion_r1314703680


##########
ql/src/test/org/apache/hadoop/hive/ql/io/orc/TestInputOutputFormat.java:
##########
@@ -2875,10 +2875,8 @@ public void testSplitGenReadOpsLocalCache() throws Exception {
         readOpsDelta = statistics.getReadOps() - readOpsBefore;
       }
     }
-    // call-1: listLocatedStatus - mock:/mocktbl
-    // call-2: check existence of side file for mock:/mocktbl/0_0
-    // call-3: check existence of side file for  mock:/mocktbl/0_1
-    assertEquals(3, readOpsDelta);
+    // call-1: getAcidState - mock:/mocktbl

Review Comment:
   This PR targets to skip flush length check for external tables. The reason that some of the queries on external tables took more time was because Hive used to check for flush length files which are only present for Acid tables. In the first call when it concludes that it is an external table, it skips checking for side files hence the total number of calls reduces from 3 to 1.



-- 
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: gitbox-unsubscribe@hive.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org