saarthdeshpande opened a new issue, #35766:
URL: https://github.com/apache/arrow/issues/35766
### Describe the usage question you have. Please include as many useful
details as possible.
I'm running `cpp/examples/arrow/parquet_read_write.cc` with the values `x =
{1, 3, 5, 7, 9}` and `y = {2, 4, 6, 8, 10}` and `chunk_size = 5`. I notice that
the `Compress()` function is called once per column to write the page data and
once per column when
[`pager_->has_compressor()`](https://github.com/apache/arrow/blob/2d32efeedad88743dd635ff562c65e072cfb44f7/cpp/src/parquet/column_writer.cc#L970)
I'm having trouble understanding what/why exactly the `Compress()` function is
being called in the latter case. Following the function call tree, I see the
comments:
```
Each leaf column is written fully before the next column is written.
```
Could you please define what exactly a leaf column is, and whether that is
part of the reason the `Compress()` function above is called?
### Component(s)
C++
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]