Skip to content

Add writer_timezone option to the ORC writer - #23449

Draft
vuule wants to merge 1 commit into
rapidsai:mainfrom
vuule:orc-writer-timezone
Draft

Add writer_timezone option to the ORC writer#23449
vuule wants to merge 1 commit into
rapidsai:mainfrom
vuule:orc-writer-timezone

Conversation

@vuule

@vuule vuule commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Description

Adds a writer_timezone option to orc_writer_options and chunked_orc_writer_options. ORC timestamps are wall-clock values stored relative to the ORC epoch as it occurs in the writer's timezone, so honoring the option re-bases the encoded data rather than only recording a name in the stripe footers, matching the base epoch that Apache's TimestampTreeWriter uses. The default is "UTC", which leaves existing output byte-identical.

For non-UTC files the legacy minimum/maximum timestamp statistics are omitted and only minimumUtc/maximumUtc are written, since readers interpret the legacy fields in their own timezone. Also exposed in the Java bindings.

Addresses #23422.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

ORC timestamps are wall-clock values stored relative to the ORC epoch as
it occurs in the writer's timezone, so writing them requires re-basing the
encoded data, not just recording a name in the stripe footers. Add a
writer_timezone option that does this, defaulting to UTC so existing
output is unchanged.
@copy-pr-bot

copy-pr-bot Bot commented Jul 27, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-actions github-actions Bot added libcudf Affects libcudf (C++/CUDA) code. Java Affects Java cuDF API. labels Jul 27, 2026
@vuule vuule added feature request New feature or request non-breaking Non-breaking change labels Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature request New feature or request Java Affects Java cuDF API. libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant