Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Fixed float to i128 cast #817

Merged
merged 1 commit into from
Feb 6, 2022
Merged

Conversation

houqp
Copy link
Collaborator

@houqp houqp commented Feb 6, 2022

caught by datafusion integration test, see: apache/datafusion#1733

{
let from = from.as_any().downcast_ref().unwrap();
Ok(Box::new(integer_to_decimal::<T>(from, precision, scale)))
Ok(Box::new(float_to_decimal::<T>(from, precision, scale)))
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is the fix

@houqp
Copy link
Collaborator Author

houqp commented Feb 6, 2022

@Igosuki FYI

@codecov
Copy link

codecov bot commented Feb 6, 2022

Codecov Report

Merging #817 (7b1d5d7) into main (8330eea) will increase coverage by 0.07%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #817      +/-   ##
==========================================
+ Coverage   71.20%   71.27%   +0.07%     
==========================================
  Files         327      327              
  Lines       17542    17543       +1     
==========================================
+ Hits        12490    12503      +13     
+ Misses       5052     5040      -12     
Impacted Files Coverage Δ
src/compute/cast/primitive_to.rs 82.14% <100.00%> (+5.01%) ⬆️
src/bitmap/utils/slice_iterator.rs 92.53% <0.00%> (+1.49%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8330eea...7b1d5d7. Read the comment docs.

@jorgecarleitao jorgecarleitao merged commit eb4e588 into jorgecarleitao:main Feb 6, 2022
@jorgecarleitao jorgecarleitao changed the title fix float to i128 cast Fixed float to i128 cast Feb 6, 2022
@jorgecarleitao jorgecarleitao added the bug Something isn't working label Feb 6, 2022
@jorgecarleitao
Copy link
Owner

Thanks a lot for the fix!

@houqp houqp deleted the qp_cast branch February 6, 2022 07:03
Copy link
Collaborator

@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.

🎉

@Igosuki
Copy link
Contributor

Igosuki commented Feb 6, 2022

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants