Skip to content

Fix to_char signature ordering#13126

Merged
alamb merged 1 commit intoapache:mainfrom
Omega359:feature/to_char_with_tz_fix_13125
Oct 29, 2024
Merged

Fix to_char signature ordering#13126
alamb merged 1 commit intoapache:mainfrom
Omega359:feature/to_char_with_tz_fix_13125

Conversation

@Omega359
Copy link
Copy Markdown
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 Changes to functions implementation labels Oct 26, 2024
@Omega359 Omega359 marked this pull request as ready for review October 26, 2024 22:42
Copy link
Copy Markdown
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
Copy Markdown
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
@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 Changes to functions implementation 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