pearu opened a new pull request, #54659: URL: https://github.com/apache/arrow/pull/54659
### Rationale for this change `strptime` accepts a seconds value of 60 (glibc also 61), and the parser added it to the time of day, which wrapped it into the next minute. Arrow cannot represent leap seconds, and the ISO-8601 parser rejects them. ### What changes are included in this PR? The parser rejects a seconds value of 60 or more. The check applies only when the time of day is used, so Gandiva's `to_date`, which ignores the time, still accepts such values. ### Are these changes tested? Yes, in `TimestampParser.StrptimeParser`, and a Gandiva `to_date` test checks that a leap second still gives the date when the time is ignored. ### Are there any user-facing changes? Leap seconds no longer parse with `strptime` formats, except in Gandiva's `to_date`. ### AI usage disclosure Developed with AI assistance (Claude Code): the fix, the tests and this description were AI-generated under my direction and reviewed line by line by me. I own and can debug these changes. No copyrighted material is included. * GitHub Issue: #54647 -- 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]
