HyukjinKwon commented on code in PR #38659:
URL: https://github.com/apache/spark/pull/38659#discussion_r1028943446
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/arrow/ArrowConverters.scala:
##########
@@ -253,16 +253,94 @@ private[sql] object ArrowConverters extends Logging {
val vectorLoader = new VectorLoader(root)
vectorLoader.load(arrowRecordBatch)
arrowRecordBatch.close()
+ vectorSchemaRootToIter(root)
+ }
+ }
+ }
+
+ /**
+ * Maps iterator from serialized ArrowRecordBatches to InternalRows.
Different from
+ * [[fromBatchIterator]], each input arrow batch starts with the schema.
+ */
+ private[sql] def fromBatchWithSchemaIterator(
Review Comment:
Sorry for late reviews. Can we dedup the logic like
`ArrowBatchWithSchemaIterator` is doing?
--
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]