-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
GH-40154: [C++][Parquet] Separate encoders and decoder #43972
Conversation
3e67757
to
be17259
Compare
@mapleFU @felipecrv @wgtmac This splits encoders and decoder into two separate files, but keeps a single |
I've checked that |
I just took a glimpse of it. It looks great! |
LGTM |
@github-actions crossbow submit -g cpp |
Revision: be17259 Submitted crossbow builds: ursacomputing/crossbow @ actions-d1fc910e2b |
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit c2123b8. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 9 possible false positives for unstable benchmarks that are known to sometimes produce them. |
…43972) ### Rationale for this change `encoding.cc` is quite large nowadays : around 4000 lines of code, which makes code navigation cumbersome. It combines the functionality of encoders and decoders, however, those use distinct infrastructures and do not share any code. Other areas of Parquet tend to separate the reading and writing facilities: for example, `column_reader.cc` vs. `column_writer.cc`. ### What changes are included in this PR? The main change is to move encoders to `encoder.cc`, decoders to `decoder.cc`, and remove `encoding.cc`. A small improvement is also to remove the inclusion of `arrow/util/spaced.h` in `encoding.h` by moving the `TypedDecoder<T>::DecodeSpaced` implementation into `decoder.cc`. Note the massive code shuffle may obscure the git history quite a bit. `git log -C` doesn't seem able to track earlier versions of the encoder and decoder code, but `git blame -C` is. ### Are these changes tested? By existing tests. ### Are there any user-facing changes? No. * GitHub Issue: apache#40154 Authored-by: Antoine Pitrou <[email protected]> Signed-off-by: Antoine Pitrou <[email protected]>
…43972) ### Rationale for this change `encoding.cc` is quite large nowadays : around 4000 lines of code, which makes code navigation cumbersome. It combines the functionality of encoders and decoders, however, those use distinct infrastructures and do not share any code. Other areas of Parquet tend to separate the reading and writing facilities: for example, `column_reader.cc` vs. `column_writer.cc`. ### What changes are included in this PR? The main change is to move encoders to `encoder.cc`, decoders to `decoder.cc`, and remove `encoding.cc`. A small improvement is also to remove the inclusion of `arrow/util/spaced.h` in `encoding.h` by moving the `TypedDecoder<T>::DecodeSpaced` implementation into `decoder.cc`. Note the massive code shuffle may obscure the git history quite a bit. `git log -C` doesn't seem able to track earlier versions of the encoder and decoder code, but `git blame -C` is. ### Are these changes tested? By existing tests. ### Are there any user-facing changes? No. * GitHub Issue: apache#40154 Authored-by: Antoine Pitrou <[email protected]> Signed-off-by: Antoine Pitrou <[email protected]>
Rationale for this change
encoding.cc
is quite large nowadays : around 4000 lines of code, which makes code navigation cumbersome. It combines the functionality of encoders and decoders, however, those use distinct infrastructures and do not share any code.Other areas of Parquet tend to separate the reading and writing facilities: for example,
column_reader.cc
vs.column_writer.cc
.What changes are included in this PR?
The main change is to move encoders to
encoder.cc
, decoders todecoder.cc
, and removeencoding.cc
.A small improvement is also to remove the inclusion of
arrow/util/spaced.h
inencoding.h
by moving theTypedDecoder<T>::DecodeSpaced
implementation intodecoder.cc
.Note the massive code shuffle may obscure the git history quite a bit.
git log -C
doesn't seem able to track earlier versions of the encoder and decoder code, butgit blame -C
is.Are these changes tested?
By existing tests.
Are there any user-facing changes?
No.