-
Notifications
You must be signed in to change notification settings - Fork 506
ORC-1881: [C++] Populate dstBatch's scale and precision in DecimalConvertColumnReader #2194
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
dongjoon-hyun
left a comment
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.
Thank you for making a PR, @kecookier .
According to the Affected Version of JIRA issues, this only affects ORC 2.x?
@dongjoon-hyun Yes, the schema evolution for decimal types is introduced in ORC 2.x |
ffacs
left a comment
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.
LGTM
dongjoon-hyun
left a comment
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.
+1, LGTM.
…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 #2194 from kecookier/fix-decimal-2-decimal. Authored-by: zhaokuo03 <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]> (cherry picked from commit 44990bd) Signed-off-by: Dongjoon Hyun <[email protected]>
|
Merged to Welcome to the Apache ORC community, @kecookier . I added you to the Apache ORC contributor group and assigned ORC-1881 to you. Since branch-2.0 is currently broken due to C++ linter error, I didn't backport this. Please make a backporting PR to branch-2.0, @kecookier . |
…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 apache#2194 from kecookier/fix-decimal-2-decimal. Authored-by: zhaokuo03 <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
…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]>
…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]>
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.