cj-zhukov opened a new issue, #337: URL: https://github.com/apache/datafusion-spark/issues/337
### Is your feature request related to a problem or challenge? `to_json` (#86) writes a timestamp's time zone offset with chrono's `%:z`, which rounds the offset to the minute. Spark's `XXX` pattern keeps the seconds when they are not zero, which shows for historical LMT offsets. With session time zone `America/Los_Angeles`, Spark writes `TIMESTAMP '1800-01-01 00:00:00'` as `1800-01-01T00:00:00.000-07:52:58`; `to_json` writes `-07:53`. Raised by @andygrove in the review of #86 as a follow-up. ### Describe the solution you'd like Format the offset with `%::z` and drop a trailing `:00`, so `+02:00:00` stays `+02:00` and `-07:52:58` is kept as is. Add a unit test and an slt case for the value above (verified against Spark 4.2.0 in the review). ### Describe alternatives you've considered None ### Additional context Follow-up to #86. -- 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]
