Repository navigation
[Backport 2.19-dev] Default to UTC for date/time functions across PPL and SQL - #3920
Merged
penghuo merged 1 commit intoJul 25, 2025
Conversation
yuancu
requested review from
GumpacG,
LantaoJin,
MaxKsyunz,
Swiddis,
YANG-DB,
Yury-Fridlyand,
acarbonetto,
anirudha,
dai-chen,
derek-ho,
forestmvey,
joshuali925,
kavithacm,
mengweieric,
noCharger,
penghuo,
ps48,
qianheng-aws,
seankao-az and
ykmr1224
as code owners
July 24, 2025 10:57
…-project#3854) * Use UTC for all date/time related functions Signed-off-by: Yuanchun Shen <[email protected]> * Change zone ID to UTC in date/time tests Signed-off-by: Yuanchun Shen <[email protected]> * Update now's timezone to UTC in datetime documentation Signed-off-by: Yuanchun Shen <[email protected]> * Add a test to compare against UTC date Signed-off-by: Yuanchun Shen <[email protected]> * Revert changes to sysdate: make it return timestamp in cluster timezone Signed-off-by: Yuanchun Shen <[email protected]> * Correct utc_time and utc_timestamp to return time in HH:mm:ss format (intead of with random length of milliseconds) Signed-off-by: Yuanchun Shen <[email protected]> * Update datetime function documentations to highlight changes to UTC for now-like functions Signed-off-by: Yuanchun Shen <[email protected]> * Correct phrasing of sysdate and some other datetime function documentations Signed-off-by: Yuanchun Shen <[email protected]> * Add a note directive block at the top of datetime to describe the time zone behavior Signed-off-by: Yuanchun Shen <[email protected]> * Revert "Revert changes to sysdate: make it return timestamp in cluster timezone" This reverts commit b7be897. Signed-off-by: Yuanchun Shen <[email protected]> * Update sysdate's description Signed-off-by: Yuanchun Shen <[email protected]> * Update datetime.rst - remove expressions indicating PPL supporting other time zones Signed-off-by: Yuanchun Shen <[email protected]> * Add STRING to allowed first parameter of convert_tz as it returns null for malformatted date Signed-off-by: Yuanchun Shen <[email protected]> * Restrict the format of convert_tz's argument Signed-off-by: Yuanchun Shen <[email protected]> --------- Signed-off-by: Yuanchun Shen <[email protected]> (cherry picked from commit b3c0177)
yuancu
force-pushed
the
backport/backport-3854-to-2.19-dev
branch
from
July 24, 2025 12:07
3f3ef46 to
52b892c
Compare
LantaoJin
approved these changes
Jul 24, 2025
penghuo
approved these changes
Jul 25, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Backport #3854 to 2.19-dev
Related Issues
#3725
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.