Skip to content

Fix precision loss when coercing date_part utf8 argument#7846

Merged
Dandandan merged 1 commit intoapache:mainfrom
Dandandan:precision_date_part
Oct 17, 2023
Merged

Fix precision loss when coercing date_part utf8 argument#7846
Dandandan merged 1 commit intoapache:mainfrom
Dandandan:precision_date_part

Conversation

@Dandandan
Copy link
Copy Markdown
Contributor

@Dandandan Dandandan commented Oct 17, 2023

Which issue does this PR close?

Closes #7847

Rationale for this change

What changes are included in this PR?

Reordering the function signature to prioritize coercing to higher precision types.

Are these changes tested?

Yes, extra tests added.

Are there any user-facing changes?

@github-actions github-actions Bot added logical-expr Logical plan and expressions core Core DataFusion crate labels Oct 17, 2023
Copy link
Copy Markdown
Contributor

@joroKr21 joroKr21 left a comment

Choose a reason for hiding this comment

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

Nice 👍

Copy link
Copy Markdown
Member

@Weijun-H Weijun-H left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @Dandandan

@Dandandan Dandandan merged commit d009d48 into apache:main Oct 17, 2023
@andygrove andygrove added the enhancement New feature or request label Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate enhancement New feature or request logical-expr Logical plan and expressions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Precision loss when coercing date_part utf8 argument

6 participants