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 to_char signature ordering #13126

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

Omega359
Copy link
Contributor

Which issue does this PR close?

Closes #13125

Rationale for this change

The to_char function for formatting time values as strings seems to drop the milliseconds portion of the timestamp prior to formatting when the timestamp has a timezone.

What changes are included in this PR?

Code, slt test.

Are these changes tested?

Yes.

Are there any user-facing changes?

No

…nes or other types because the ordering is not in most exact -> least exact order.
@github-actions github-actions bot added sqllogictest SQL Logic Tests (.slt) functions labels Oct 26, 2024
@Omega359 Omega359 marked this pull request as ready for review October 26, 2024 22:42
Copy link
Contributor

@jonathanc-n jonathanc-n left a comment

Choose a reason for hiding this comment

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

This LGTM!

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you @Omega359 and @jonathanc-n for the review

@alamb alamb merged commit 1c2a2fd into apache:main Oct 29, 2024
24 checks passed
@Omega359 Omega359 deleted the feature/to_char_with_tz_fix_13125 branch October 29, 2024 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
functions sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

to_char drops milliseconds when timestamp has a timezone
3 participants