You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GH-41488: [C++][Python] Apply timestamp_parsers as fallback when parsing CSV date and time columns
CSV columns explicitly typed as date32, date64, time32 or time64 could
only be parsed from strict ISO-8601 strings; ConvertOptions::timestamp_parsers
was consulted only for timestamp columns.
Make the user-defined timestamp parsers act as a fallback for these
column types: the built-in ISO-8601 parser is tried first (preserving
existing behavior), then each configured parser in order. A timestamp
produced by a fallback parser is floored to the day boundary for dates
and reduced to the time of day for times, consistent with casting a
timestamp to a date or time type.
Type inference of date and time columns is deliberately unaffected:
inference keeps using strict ISO-8601 parsing, otherwise a value with a
time-of-day part could be inferred as a date and silently truncated.
Also provide C-locale name tables to the vendored musl strptime used on
Windows, where nl_langinfo() is unavailable: this makes %a/%A/%b/%B/%h/
%p/%c/%r/%x/%X work on Windows (matching musl's C locale), so that the
month-name formats from the original issue reports parse on all
platforms.
ClosesGH-28303.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
0 commit comments