GH-37102: [Go][Parquet] Encoding: Make BitWriter Reserve when ReserveBytes#37112
GH-37102: [Go][Parquet] Encoding: Make BitWriter Reserve when ReserveBytes#37112zeroshade merged 6 commits intoapache:mainfrom
Conversation
|
|
|
@mapleFU Does this solve the issue in the linked issue? Can you take the test from the issue and add it as a test to confirm this solves the problem here? |
|
I think it fix the problem. I've add a test here. I have a long time didn't using Golang, so maybe I didn't follow the best style, and It's a bit late in UTC-8, so feel free to edit this patch directly. @zeroshade |
|
@mapleFU Thanks much! I'll take a look. at first glance it looks good |
|
I'm afraid thats a bit hard for me. The reason is that You can edit this patch directly or close it and create one :-) |
9b426a1 to
d78baf3
Compare
d78baf3 to
f384169
Compare
|
Hi Matt, I found And thanks so much for your help!!! |
|
I've no problem now. Though it might get more memory than expected, the implement is right. So it LGTM, thanks Matt! |
|
After merging your PR, Conbench analyzed the 5 benchmarking runs that have been run so far on merge-commit 6b810cb. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about possible false positives for unstable benchmarks that are known to sometimes produce them. |
…eserveBytes (apache#37112) ### Rationale for this change See apache#37102. Also fixes apache#35718 Golang BitWriter didn't reserve when `ReserveBytes` called. So it make it wrong. ### What changes are included in this PR? Change `ReserveBytes` impl ### Are these changes tested? Currently not ### Are there any user-facing changes? bugfix * Closes: apache#37102 Lead-authored-by: Matt Topol <zotthewizard@gmail.com> Co-authored-by: mwish <maplewish117@gmail.com> Signed-off-by: Matt Topol <zotthewizard@gmail.com>
Rationale for this change
See #37102. Also fixes #35718
Golang BitWriter didn't reserve when
ReserveBytescalled. So it make it wrong.What changes are included in this PR?
Change
ReserveBytesimplAre these changes tested?
Currently not
Are there any user-facing changes?
bugfix