-
Notifications
You must be signed in to change notification settings - Fork 506
ORC-1881: [C++] Populate dstBatch's scale and precision in DecimalConvertColumnReader #2197
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
Conversation
1da647e to
0d50dff
Compare
|
@dongjoon-hyun Would you mind helping investigate the CI cpp-linter failures? This seems to be an unrelated issue, and I'm not familiar with this check. |
|
I think d8e7dbf is missing in the branch-2.0 |
I'll try this. |
ec15e85 to
0d50dff
Compare
|
Could you rebase this to |
…vertColumnReader Set dstBatch's decimal and precision when `DecimalConvertColumnReader::next`. Fix ORC-1881. During decimal-to-decimal conversion in `SchemaEvolution`, the target decimal's scale and precision are incorrectly initialized to zero, producing a corrupted `ColumnVectorBatch`. Unit test. No. Closes apache#2194 from kecookier/fix-decimal-2-decimal. Authored-by: zhaokuo03 <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
0d50dff to
012e814
Compare
|
@dongjoon-hyun Thanks for the review, I've already rebased it onto branch-2.0. |
…vertColumnReader ### What changes were proposed in this pull request? Set dstBatch's decimal and precision when `DecimalConvertColumnReader::next`. Fix ORC-1881. ### Why are the changes needed? During decimal-to-decimal conversion in `SchemaEvolution`, the target decimal's scale and precision are incorrectly initialized to zero, producing a corrupted `ColumnVectorBatch`. ### How was this patch tested? Unit test. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #2197 from kecookier/backport-2194-branch-2.0. Authored-by: zhaokuo03 <[email protected]> Signed-off-by: Gang Wu <[email protected]>
|
Thanks @kecookier and @dongjoon-hyun! I've merged it. |
What changes were proposed in this pull request?
Set dstBatch's decimal and precision when
DecimalConvertColumnReader::next.Fix ORC-1881.
Why are the changes needed?
During decimal-to-decimal conversion in
SchemaEvolution, the target decimal's scale and precision are incorrectly initialized to zero, producing a corruptedColumnVectorBatch.How was this patch tested?
Unit test.
Was this patch authored or co-authored using generative AI tooling?
No.