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

Minor: Extend ScalarValue::new_zero() #13828

Merged
merged 4 commits into from
Dec 18, 2024
Merged

Conversation

berkaysynnada
Copy link
Contributor

@berkaysynnada berkaysynnada commented Dec 18, 2024

Which issue does this PR close?

Closes #.

Rationale for this change

Just a minor change. Decimal, Time and Date datatypes can be created just like other numeric and temporal types with 0.

What changes are included in this PR?

ScalarValue::new_zero() includes Decimal128, Decimal256, Time32(Second/Millisecond), Time64(Microsecond, Nanosecond), Date32, Date64.

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the common Related to common crate label Dec 18, 2024
@berkaysynnada berkaysynnada changed the title Minor: new_zero impl for Date32/64 Minor: Extend ScalarValue::new_zero() Dec 18, 2024
Copy link
Contributor

@comphead comphead left a comment

Choose a reason for hiding this comment

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

Thanks @berkaysynnada
Thats lgtm

@alamb alamb merged commit c2b6035 into apache:main Dec 18, 2024
27 checks passed
@alamb
Copy link
Contributor

alamb commented Dec 18, 2024

🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common Related to common crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants