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 207b5d8
Browse filesBrowse the repository at this point in the historyBrowse files
Validate day numbers read into a Date column in Parquet, Arrow and Arrow IPC
These readers validated only the widened `Date32` range and later cast the
intermediate `Date32` column to `Date` with a context-less `castColumn`,
which narrows the day number to `UInt16`. Extended values like `0000-01-01`
and `9999-12-31` therefore wrapped into unrelated in-range `Date`s instead
of honoring `date_time_overflow_behavior`. Mirror the ORC/Avro fixes: when
the requested type is `Date`, range-check against `[0, DATE_LUT_MAX_DAY_NUM]`
before the cast — 'saturate' clamps, anything else throws.
Covers the native Parquet v3 reader (`SchemaConverter`/`IntConverter`),
the Arrow IPC `RecordBatchDecoder`, and `readColumnWithDate32Data` in
`ArrowColumnToCHColumn` (used by ArrowFlight and DeltaLake).
Addresses the AI review blockers on
#111534
Co-Authored-By: Claude Fable 5 <[email protected]>
0 commit comments