miomiocat opened a new pull request, #1514: URL: https://github.com/apache/paimon-rust/pull/1514
### Purpose Closes #1513. Read legacy ORC timestamps with the same time-zone interpretation as Java Paimon. A fixed offset would return the wrong value across a daylight-saving transition. ### Brief change log - Pass table options into the ORC reader. Honor `orc.timestamp-ltz.legacy.type` and allow callers to supply `orc.timestamp-ltz.legacy.time-zone`, with UTC as the default. - Apply the offset for each instant to timezone-bearing timestamps, including nested values, before residual filtering. Keep nulls and subsecond precision. ### Tests Added coverage for pre-epoch and subsecond timestamps, nulls, winter and summer offsets in New York, and explicitly disabled legacy mode. Local verification passed with `cargo build --locked -p paimon --lib` and `cargo fmt --all -- --check`. Test execution is left to upstream CI. ### API and Format Callers can supply the legacy time zone as a table option. The ORC file encoding is unchanged. ### Documentation For legacy files, set `orc.timestamp-ltz.legacy.time-zone` to the time zone used by the Java reader, such as `America/New_York`. Setting `orc.timestamp-ltz.legacy.type=false` disables the adjustment. -- 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]
