@@ -114,8 +114,7 @@ class ChunkedArraySorter : public TypeVisitor {
114114
115115 std::vector<ChunkedNullPartitionResult> chunk_sorted (num_chunks);
116116 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);
119118 }
120119
121120 auto merge_nulls = [&](CompressedChunkLocation* nulls_begin,
@@ -158,8 +157,7 @@ class ChunkedArraySorter : public TypeVisitor {
158157
159158 // Reverse everything
160159 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_);
163161
164162 RETURN_NOT_OK (chunked_mapper.PhysicalToLogical ());
165163 }
@@ -706,8 +704,7 @@ class TableSorter {
706704
707705 std::vector<ChunkedNullPartitionResult> chunk_sorted (num_batches);
708706 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);
711708 }
712709
713710 struct Visitor {
0 commit comments