abstractdog commented on a change in pull request #2479:
URL: https://github.com/apache/hive/pull/2479#discussion_r696573989



##########
File path: 
ql/src/java/org/apache/hadoop/hive/ql/io/parquet/vector/VectorizedListColumnReader.java
##########
@@ -479,6 +501,9 @@ private boolean compareBytesColumnVector(BytesColumnVector 
cv1, BytesColumnVecto
     int length2 = cv2.vector.length;
     if (length1 == length2) {
       for (int i = 0; i < length1; i++) {
+        if (cv1.vector[i] == null && cv2.vector[i] == null) {
+          continue;

Review comment:
       I think I got it, it will be much faster for non-null strings:
   ```
           int innerLen1 = cv1.vector[i].length;
           int innerLen2 = cv2.vector[i].length;
           if (innerLen1 == innerLen2) {
             for (int j = 0; j < innerLen1; j++) {
               if (cv1.vector[i][j] != cv2.vector[i][j]) {
                 return false;
               }
             }
           } else {
             return false;
           }
           
           if (cv1.isNull[i] && cv2.isNull[i]) {
             continue;
           }
   ```




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