zhztheplayer commented on code in PR #7360:
URL: https://github.com/apache/incubator-gluten/pull/7360#discussion_r1804039925


##########
backends-velox/src/main/java/org/apache/gluten/columnarbatch/VeloxColumnarBatches.java:
##########
@@ -45,6 +45,14 @@ public static void checkNonVeloxBatch(ColumnarBatch batch) {
         String.format("Comprehensive batch type is already %s", 
COMPREHENSIVE_TYPE_VELOX));
   }
 
+  public static Boolean isVeloxBatch(ColumnarBatch batch) {
+    if (!ColumnarBatches.isLightBatch(batch)) {
+      return false;
+    }
+    final String comprehensiveType = 
ColumnarBatches.getComprehensiveLightBatchType(batch);
+    return Objects.equals(comprehensiveType, COMPREHENSIVE_TYPE_VELOX);
+  }

Review Comment:
   nit: Remove this if unused. Thanks.



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