Repository navigation
GH-45534: [C++] Test: RunEndEncodeTableColumns should update REE columns' schema types - #45535
Conversation
…olumns' schema types
|
|
|
@felipecrv Do you want to take a quick look at this PR? |
|
Noting that I just edited the linked issue: #45534 (comment) |
mapleFU
left a comment
There was a problem hiding this comment.
2 nits, but I'm ok to merge this since it's just for testing
I've validate this is wrong with:
diff --git a/cpp/src/arrow/acero/hash_aggregate_test.cc b/cpp/src/arrow/acero/hash_aggregate_test.cc
index dce0e44eb1..7e2164fca4 100644
--- a/cpp/src/arrow/acero/hash_aggregate_test.cc
+++ b/cpp/src/arrow/acero/hash_aggregate_test.cc
@@ -775,6 +775,7 @@ TEST_P(GroupBy, CountOnly) {
if (!re_encode_cols.empty()) {
ASSERT_OK_AND_ASSIGN(transformed_table,
RunEndEncodeTableColumns(*table, re_encode_cols));
+ ASSERT_OK(transformed_table->ValidateFull());
}| std::vector<std::shared_ptr<Field>> encoded_fields; | ||
| encoded_fields.reserve(num_columns); | ||
| for (int i = 0; i < num_columns; i++) { | ||
| auto field = table.schema()->field(i); |
There was a problem hiding this comment.
nit:
| auto field = table.schema()->field(i); | |
| auto& field = table.schema()->field(i); |
| } | ||
| } | ||
| return Table::Make(table.schema(), std::move(encoded_columns)); | ||
| auto updated_schema = arrow::schema(encoded_fields); |
There was a problem hiding this comment.
| auto updated_schema = arrow::schema(encoded_fields); | |
| auto updated_schema = arrow::schema(std::move(encoded_fields)); |
|
Will merge after ci pass |
|
Failed ci unrelated |
RunEndEncodeTableColumns should update run-end-encoded columns' schema typesRunEndEncodeTableColumns should update REE columns' schema types
|
Thank you for the review @mapleFU! |
|
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit f6b8557. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 13 possible false positives for unstable benchmarks that are known to sometimes produce them. |
…REE columns' schema types (apache#45535) ### Rationale for this change This change makes the returned schema more correct pending discussion in apache#45534. ### What changes are included in this PR? For every column which is run-end-encoded in `RunEndEncodeTableColumns`, the corresponding schema field will be changed to also be run-end-encoded. ### Are these changes tested? Yes ### Are there any user-facing changes? no, this fixes a bug in a gtest util which is user-facing. * GitHub Issue: apache#45534 Lead-authored-by: Lester Fan <lesterfan37@gmail.com> Co-authored-by: mwish <maplewish117@gmail.com> Signed-off-by: mwish <maplewish117@gmail.com>
Rationale for this change
This change makes the returned schema more correct pending discussion in #45534.
What changes are included in this PR?
For every column which is run-end-encoded in
RunEndEncodeTableColumns, the corresponding schema field will be changed to also be run-end-encoded.Are these changes tested?
Yes
Are there any user-facing changes?
no, this fixes a bug in a gtest util which is user-facing.
RunEndEncodeTableColumnsdoesn't change the table's schema type to reflect that the column is run-end-encoded #45534