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
{{ message }}
Repository navigation
Commit a7843c4
Browse filesBrowse the repository at this point in the historyBrowse files
Validate day numbers read into a DateTime column in Parquet, Arrow and Arrow IPC
The Parquet, Arrow and Arrow IPC readers decode a date32 column into an
intermediate `Date32` column and cast it to the requested type with a
context-less `castColumn`, which ignores `date_time_overflow_behavior`.
With the extended `Date32` range, a valid day number like `9999-12-31`
passed the `Date32` range check and then wrapped through
`ToDateTimeImpl<Ignore>` to an unrelated timestamp in 2106 when read
into a `DateTime` column.
Validate day numbers against the [0, MAX_DATETIME_DAY_NUM] window that
`ToDateTimeImpl` uses when the requested type is `DateTime`, alongside
the existing `Date` target validation: 'saturate' clamps, anything else
throws. Extends test `04761_parquet_arrow_date_overflow_behavior` with
`DateTime` target cases.
Addresses the AI review finding in
#111534 (comment)
0 commit comments