@@ -114,8 +114,7 @@ class ChunkedArraySorter : public TypeVisitor {
114
114
115
115
std::vector<ChunkedNullPartitionResult> chunk_sorted (num_chunks);
116
116
for (int i = 0 ; i < num_chunks; ++i) {
117
- chunk_sorted[i] = ChunkedNullPartitionResult::TranslateFrom (
118
- sorted[i], indices_begin_, chunked_indices_begin);
117
+ chunk_sorted[i] = sorted[i].TranslateTo (indices_begin_, chunked_indices_begin);
119
118
}
120
119
121
120
auto merge_nulls = [&](CompressedChunkLocation* nulls_begin,
@@ -158,8 +157,7 @@ class ChunkedArraySorter : public TypeVisitor {
158
157
159
158
// Reverse everything
160
159
sorted.resize (1 );
161
- sorted[0 ] = NullPartitionResult::TranslateFrom (
162
- chunk_sorted[0 ], chunked_indices_begin, indices_begin_);
160
+ sorted[0 ] = chunk_sorted[0 ].TranslateTo (chunked_indices_begin, indices_begin_);
163
161
164
162
RETURN_NOT_OK (chunked_mapper.PhysicalToLogical ());
165
163
}
@@ -706,8 +704,7 @@ class TableSorter {
706
704
707
705
std::vector<ChunkedNullPartitionResult> chunk_sorted (num_batches);
708
706
for (int64_t i = 0 ; i < num_batches; ++i) {
709
- chunk_sorted[i] = ChunkedNullPartitionResult::TranslateFrom (
710
- sorted[i], indices_begin_, chunked_indices_begin);
707
+ chunk_sorted[i] = sorted[i].TranslateTo (indices_begin_, chunked_indices_begin);
711
708
}
712
709
713
710
struct Visitor {
0 commit comments