zhengruifeng opened a new pull request, #53678: URL: https://github.com/apache/spark/pull/53678
### What changes were proposed in this pull request? This PR make `to_arrow_schema/to_arrow_type` able to set timezone, and keep existing behaviors by setting `UTC` as the default timezone. So that we can check whether the timezone is reasonable later. ### Why are the changes needed? it is kind of problematical in pyspark timezone handling, one example is `to_arrow_schema/to_arrow_type` is not able to set the timezone while timezone is supported in JVM side https://github.com/apache/spark/blob/d6f1e224df8fc620ab44817e4c1034f990f5d8ff/sql/api/src/main/scala/org/apache/spark/sql/util/ArrowUtils.scala#L40-L68 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? CI ### Was this patch authored or co-authored using generative AI tooling? No -- 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]
