-
Notifications
You must be signed in to change notification settings - Fork 874
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
support cast decimal to decimal #1084
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1084 +/- ##
=======================================
Coverage 82.31% 82.31%
=======================================
Files 168 168
Lines 49383 49420 +37
=======================================
+ Hits 40649 40681 +32
- Misses 8734 8739 +5
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@liukun4515 I looked at this PR and the code looks good. I think all it needs now is some tests and a rebase and it would be good to go.
I plan to create an arrow 6.5.0 release candidate tomorrow (Thursday) -- let me know if you think we should aim to get this PR merged before doing so.
arrow/src/compute/kernels/cast.rs
Outdated
let input_type = DataType::Decimal(20, 3); | ||
let output_type = DataType::Decimal(20, 4); | ||
assert!(can_cast_types(&input_type, &output_type)); | ||
// let array = vec![Some(1123456), Some(2123456), Some(3123456), None]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like we just need some tests here, and we'll be all set 👍
I rebased this branch with master and added some test cases. |
Thanks @liukun4515 ❤️ |
* support cast decimal to decimal * add test case * remove meaningless code
Which issue does this PR close?
part of #1043
Rationale for this change
What changes are included in this PR?
Are there any user-facing changes?