HyukjinKwon commented on PR #53232: URL: https://github.com/apache/spark/pull/53232#issuecomment-3584125620
> Can we have a shared util to produce RDD of arrow batches? Then we can either turn it to RDD of bytes, or write it to local files. This is actually already reusing a lot of existing utiles at `ArrowConverters.scala`. We have that same logic in Python but this `SparkArrowFileWriter` is new in JVM. Basically `toArrowBatchRdd` is the util you meant for `batch -> bytes`. Below code is for `bytes -> batch -> write` ``` val writer = new SparkArrowFileWriter(arrowSchema, path) writer.write(rdd.toLocalIterator) ``` -- 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]
