Skip to content

env ORC_READER_TIMEZONE#9

Merged
cxzl25 merged 1 commit intoauron-project:v0.7.0-auronfrom
cxzl25:reader_env
Dec 3, 2025
Merged

env ORC_READER_TIMEZONE#9
cxzl25 merged 1 commit intoauron-project:v0.7.0-auronfrom
cxzl25:reader_env

Conversation

@cxzl25
Copy link
Copy Markdown
Collaborator

@cxzl25 cxzl25 commented Dec 3, 2025

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for overriding the reader timezone used during ORC timestamp decoding via an environment variable. The change allows users to explicitly set the timezone used for timestamp conversion when reading ORC files with writer timezone information, rather than relying solely on system timezone detection.

Key Changes

  • Introduces AURON_READER_TIMEZONE environment variable to override system timezone detection
  • Falls back to system timezone detection (iana_time_zone::get_timezone()) when the environment variable is not set
  • Maintains existing UTC fallback behavior when both environment variable and system detection fail

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/array_decoder/timestamp.rs Outdated
Comment on lines +83 to +85
let reader_tz_name = env::var("AURON_READER_TIMEZONE").unwrap_or_else(|e| {
iana_time_zone::get_timezone().unwrap_or_else(|_| "UTC".to_string())
});
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new environment variable AURON_READER_TIMEZONE is not documented. This should be documented in the code (perhaps as a module-level comment or constant) and in the README.md to inform users that they can override the timezone detection behavior. The documentation should explain what values are accepted (IANA timezone names like "America/New_York") and what happens if an invalid value is provided (falls back to system timezone, then UTC).

Copilot uses AI. Check for mistakes.
Comment thread src/array_decoder/timestamp.rs Outdated
Comment thread src/array_decoder/timestamp.rs Outdated
Comment thread src/array_decoder/timestamp.rs Outdated
Comment thread src/array_decoder/timestamp.rs Outdated
@cxzl25 cxzl25 changed the title env AURON_READER_TIMEZONE env ORC_READER_TIMEZONE Dec 3, 2025
@cxzl25 cxzl25 requested a review from Copilot December 3, 2025 09:41
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/array_decoder/timestamp.rs
@cxzl25 cxzl25 added this to the 0.7.0-auron-v1 milestone Dec 3, 2025
@cxzl25 cxzl25 merged commit 16cf770 into auron-project:v0.7.0-auron Dec 3, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants