wecharyu commented on code in PR #13018:
URL: https://github.com/apache/gluten/pull/13018#discussion_r4056461342


##########
gluten-arrow/src/main/java/org/apache/gluten/columnarbatch/ColumnarBatches.java:
##########
@@ -196,7 +197,10 @@ public static ColumnarBatch load(BufferAllocator 
allocator, ColumnarBatch input)
         ArrowSchema arrowSchema = ArrowSchema.allocateNew(allocator);
         CDataDictionaryProvider provider = new CDataDictionaryProvider()) {
       ColumnarBatchJniWrapper.exportToArrow(
-          iv.handle(), cSchema.memoryAddress(), cArray.memoryAddress());
+          iv.handle(),
+          cSchema.memoryAddress(),
+          cArray.memoryAddress(),
+          SparkSchemaUtil.enableLargeVarTypes());

Review Comment:
   Removed `ArrowUtil.toArrowSchema` api, import the native `ArrowSchema` and 
`ArrowArray` together through `ArrowAbiUtil` so that the schema always 
describes the actual buffer layout.



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