arrow
arrow copied to clipboard
GH-41233: [C++] Added an are_cols_sorted option to RowTableMetadata for control column sorted
Rationale for this change
Fix the bug in grouper when set are_cols_in_encoding_order=false in below codes: https://github.com/apache/arrow/blob/2979d69a05cb16012da06baaa801a1849e9110ce/cpp/src/arrow/compute/row/grouper.cc#L582
It will cause the num_group different with are_cols_in_encoding_order=true
condition.
What changes are included in this PR?
Added an are_cols_sorted option to RowTableMetadatato control whether we enable column-sorted in RowTableEncoder.
Are these changes tested?
Will be added after https://github.com/apache/arrow/pull/40998 merged(grouper_test has added in this pr).
Are there any user-facing changes?
No.
- GitHub Issue: #41233