-
Notifications
You must be signed in to change notification settings - Fork 757
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
refactor: use jiff crate replace chrono in date/timestamp func #16787
Merged
Conversation
This file contains 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
github-actions
bot
added
the
pr-refactor
this PR changes the code base without new features or bugfix
label
Nov 7, 2024
TCeason
force-pushed
the
jiff
branch
10 times, most recently
from
November 8, 2024 14:16
884c9d1
to
f284827
Compare
TCeason
commented
Nov 11, 2024
TCeason
force-pushed
the
jiff
branch
3 times, most recently
from
November 12, 2024 05:35
e8fb09e
to
b1f4fce
Compare
TCeason
changed the title
refactor: use jiff crate replace chrono
refactor: use jiff crate replace chrono in date/timestamp func
Nov 13, 2024
TCeason
force-pushed
the
jiff
branch
4 times, most recently
from
November 13, 2024 08:56
f94743a
to
dea7044
Compare
andylokandy
reviewed
Nov 13, 2024
b41sh
reviewed
Nov 14, 2024
TCeason
force-pushed
the
jiff
branch
3 times, most recently
from
November 14, 2024 10:07
a9432e8
to
ae413f0
Compare
Please review this pr. Cc @b41sh @andylokandy @sundy-li |
TCeason
force-pushed
the
jiff
branch
2 times, most recently
from
November 15, 2024 05:43
009d576
to
14c6d62
Compare
b41sh
approved these changes
Nov 15, 2024
Done: register_diff_functions(registry); register_to_number_functions(registry); register_add_functions(registry); register_sub_functions(registry); register_timestamp_to_date register_date_to_timestamp register_to_string register_string_to_date register_string_to_timestamp TODO: register_real_time_functions(registry); register_rounder_functions(registry);
Please review this pr @sundy-li |
sundy-li
approved these changes
Nov 20, 2024
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.
I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/
Summary
In jiff https://docs.rs/jiff/latest/jiff/index.html#time-zone-features, we enable
tzdb-bundle-always
(When enabled, Jiff will forcefully depend on the jiff-tzdb crate). It's not a good idea when use jiff crate.But if not enable it, jiff will read tzinfo from file /usr/share/zoneinfo. This file relate
tzdata
in system env. And we init timezone in function ctx, if system not install tzdata will cause panic. So we enable featuretzdb-bundle-always
as default.Done:
register_diff_functions(registry)
register_to_number_functions(registry)
register_add_functions(registry)
register_sub_functions(registry)
register_timestamp_to_date
register_date_to_timestamp
register_to_string
register_string_to_date
register_string_to_timestamp
register_real_time_functions
register_rounder_functions
Tests
Type of change
This change is