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

Update to bigdecimal 0.4.7 #13747

Merged

Conversation

findepi
Copy link
Member

@findepi findepi commented Dec 12, 2024

Utilize new to_plain_string function (added in akubera/bigdecimal-rs#135)

@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Dec 12, 2024
- add `decimal` to function name
- drop `precision` parameter as it is not supposed to affect the result
Utilize new `to_plain_string` function
@findepi findepi force-pushed the findepi/update-to-bigdecimal-0-4-7-c227e2 branch from c60bc81 to 0eb0ded Compare December 13, 2024 08:21
Copy link
Member

@jonahgao jonahgao 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 @findepi

@@ -149,19 +128,41 @@ mod tests {

#[test]
fn test_big_decimal_to_str() {
Copy link
Member

Choose a reason for hiding this comment

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

Do we still need these tests if to_plain_string is reliable🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

maybe not, but this also tests for normalization if any, and this may be type dependent
this test and the tested helper were supposed to go away, see last commit in #13743. Hopefully this lands one day.

@findepi findepi merged commit 5af4333 into apache:main Dec 13, 2024
27 checks passed
@findepi findepi deleted the findepi/update-to-bigdecimal-0-4-7-c227e2 branch December 13, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants