Skip to content

[GLUTEN-9244][CORE] Change the way of passing default timezone to native config#9249

Merged
philo-he merged 4 commits intoapache:mainfrom
zml1206:9244
Apr 10, 2025
Merged

[GLUTEN-9244][CORE] Change the way of passing default timezone to native config#9249
philo-he merged 4 commits intoapache:mainfrom
zml1206:9244

Conversation

@zml1206
Copy link
Copy Markdown
Contributor

@zml1206 zml1206 commented Apr 7, 2025

What changes were proposed in this pull request?

(Fixes: #9244)

How was this patch tested?

@github-actions github-actions bot added CORE works for Gluten Core VELOX labels Apr 7, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 7, 2025

#9244

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 7, 2025

Run Gluten Clickhouse CI on x86

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 7, 2025

Run Gluten Clickhouse CI on x86

@zml1206 zml1206 marked this pull request as draft April 8, 2025 01:23
@github-actions github-actions bot removed the VELOX label Apr 8, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2025

Run Gluten Clickhouse CI on x86

@zml1206 zml1206 requested a review from zhztheplayer April 8, 2025 04:59
@zml1206 zml1206 marked this pull request as ready for review April 8, 2025 04:59
@zhztheplayer
Copy link
Copy Markdown
Member

@philo-he

@zml1206 zml1206 requested a review from philo-he April 9, 2025 07:05
Copy link
Copy Markdown
Member

@philo-he philo-he left a comment

Choose a reason for hiding this comment

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

Maybe, with this fix, we can remove GLUTEN_DEFAULT_SESSION_TIMEZONE, kDefaultSessionTimezone and the relevant code.

I suggest to change the below code to throw exception if valueExists returns false or veloxCfg_->get<std::string>(kSessionTimezone, "") returns empty string, since we always expect the session timezone is set by user or set with the default value.

https://github.com/apache/incubator-gluten/blob/main/cpp/velox/compute/WholeStageResultIterator.cc#L484

@github-actions github-actions bot added the VELOX label Apr 9, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2025

Run Gluten Clickhouse CI on x86

@philo-he philo-he changed the title [GLUTEN-9244][CORE] Native runtime keeps the same timezone as JVM when SESSION_LOCAL_TIMEZONE is not set [GLUTEN-9244][CORE] Change the way of passing default timezone to native config Apr 10, 2025
Copy link
Copy Markdown
Member

@philo-he philo-he left a comment

Choose a reason for hiding this comment

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

Looks good! The construction of QueryConfig will check the validity of configured timezone.

@philo-he philo-he merged commit 722bc79 into apache:main Apr 10, 2025
50 checks passed
@zml1206 zml1206 deleted the 9244 branch December 9, 2025 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CORE works for Gluten Core VELOX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Native runtime keeps the same timezone as JVM when SESSION_LOCAL_TIMEZONE is not set

3 participants