zhengruifeng commented on PR #54180: URL: https://github.com/apache/spark/pull/54180#issuecomment-3896953285
> I am proposing to change the documentation to only specify a Spark schema and to use pyspark.sql.pandas.types.to_arrow_schema() to convert the Spark schema to arrow. On second thought, I think we cannot achieve this unless we make `to_arrow_schema/from_arrow_schema` public. I feel we should just let alone the example for now. I feel maybe we can make `schema` in `DataSource` accept a `pa.Schema` so that users can reuse it in `def read`, I will defer to @HyukjinKwon and @allisonwang-db -- 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]
