Commit 398fc5a
authored
apacheGH-48112: [C++][Parquet] Use more accurate data length estimate when decoding PLAIN BYTE_ARRAY data (apache#48113)
### Rationale for this change
Avoid reserving too many data bytes when decoding a PLAIN BYTE_ARRAY Parquet column as Arrow Binary or LargeBinary.
### Are these changes tested?
By existing tests.
### Are there any user-facing changes?
No.
* GitHub Issue: apache#48112
Authored-by: Antoine Pitrou <[email protected]>
Signed-off-by: Antoine Pitrou <[email protected]>1 parent 277faa9 commit 398fc5a
1 file changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
754 | 754 | | |
755 | 755 | | |
756 | 756 | | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
757 | 763 | | |
758 | 764 | | |
759 | 765 | | |
| |||
772 | 778 | | |
773 | 779 | | |
774 | 780 | | |
775 | | - | |
776 | | - | |
| 781 | + | |
777 | 782 | | |
778 | 783 | | |
779 | 784 | | |
| 785 | + | |
| 786 | + | |
780 | 787 | | |
781 | 788 | | |
782 | 789 | | |
| |||
790 | 797 | | |
791 | 798 | | |
792 | 799 | | |
793 | | - | |
794 | | - | |
| 800 | + | |
| 801 | + | |
795 | 802 | | |
796 | 803 | | |
797 | 804 | | |
| |||
0 commit comments