thomasrebele commented on code in PR #6219:
URL: https://github.com/apache/hive/pull/6219#discussion_r2601903653


##########
ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcInputFormat.java:
##########
@@ -389,21 +388,15 @@ public static boolean isOriginal(Reader file) {
    * @return <code>false</code> if an ACID file, <code>true</code> if a simple 
orc file
    */
   public static boolean isOriginal(Footer footer) {
-    return 
!checkIfAcidRowNamesFilled(footer.getTypesList().getFirst().getFieldNamesList());
+    return !isAcidFile(footer.getTypesList().getFirst().getFieldNamesList());
   }
 
-  private static boolean checkIfAcidRowNamesFilled(Collection<String> 
fieldNames) {
-    return 
CollectionUtils.isEqualCollection(OrcRecordUpdater.ALL_ACID_ROW_NAMES, 
fieldNames, new Equator<>() {
-      @Override
-      public boolean equate(String s, String t1) {
-        return s.equalsIgnoreCase(t1);
-      }
+  private static boolean isAcidFile(Collection<String> fieldNames) {

Review Comment:
   Indeed, `isOriginal` is much worse. Something like `acidRowsExists` or maybe 
`hasAcidRows` or `containsAcidRows` would be nice.



-- 
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]

Reply via email to