HyukjinKwon commented on PR #29719: URL: https://github.com/apache/spark/pull/29719#issuecomment-1820742649
You could even do sth like this: ``` import pyarrow spark_schema = from_arrow_schema(ardd.first().schema) ser_ardd = ardd.map(lambda x: bytearray(x.serialize())) df = spark.createDataFrame(ser_ardd, "binary") df.mapInArrow(pyarrow.deserialize, schema=spark_schema) ``` -- 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]
