Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix timestamp timezone in Parquet write #11949

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rui-mo
Copy link
Collaborator

@rui-mo rui-mo commented Dec 24, 2024

Session timezone is in 'QueryConfig' and cannot be accessed through
'sessionProperties' and 'hiveConfig'. This PR retrieves the session timezone
from the connector query context which stores the 'sessionTimezone' of the
query config in driver context.

@rui-mo rui-mo requested a review from majetideepak as a code owner December 24, 2024 07:27
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 24, 2024
Copy link

netlify bot commented Dec 24, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit f5df57b
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/676b9f3347d6f700081af9aa

@@ -645,6 +645,7 @@ struct WriterOptions {
std::function<std::unique_ptr<dwio::common::FlushPolicy>()>
flushPolicyFactory;

std::string sessionTimezoneName;
Copy link
Contributor

@Yuhta Yuhta Dec 24, 2024

Choose a reason for hiding this comment

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

Can we keep either sessionTimezoneName or sessionTimezone but not both?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed 'sessionTimezone' as it is not in use. Thanks!

@rui-mo rui-mo force-pushed the wip_fix_tz branch 2 times, most recently from f0ac10b to 3071568 Compare December 25, 2024 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants