Commit 61d30bf
ORC-1881: [C++] Populate dstBatch's scale and precision in DecimalConvertColumnReader
### 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 <zhaokuo03@meituan.com>
Signed-off-by: Gang Wu <ustcwg@gmail.com>1 parent 6f04a2e commit 61d30bf
2 files changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
| 561 | + | |
| 562 | + | |
561 | 563 | | |
562 | 564 | | |
563 | 565 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
650 | 650 | | |
651 | 651 | | |
652 | 652 | | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
653 | 657 | | |
654 | 658 | | |
655 | 659 | | |
| |||
0 commit comments