@@ -467,8 +467,8 @@ void reader_impl::decode_page_data(read_mode mode, size_t skip_rows, size_t num_
467
467
// that it is difficult/impossible for a given page to know that it is writing the very
468
468
// last value that should then be followed by a terminator (because rows can span
469
469
// page boundaries).
470
- std::vector <size_type*> out_buffers ;
471
- std::vector <size_type> final_offsets ;
470
+ auto out_buffers = cudf::detail::make_host_vector <size_type*>(_input_columns. size (), _stream) ;
471
+ auto final_offsets = cudf::detail::make_host_vector <size_type>(_input_columns. size (), _stream) ;
472
472
out_buffers.reserve (_input_columns.size ());
473
473
final_offsets.reserve (_input_columns.size ());
474
474
for (size_t idx = 0 ; idx < _input_columns.size (); idx++) {
@@ -486,14 +486,14 @@ void reader_impl::decode_page_data(read_mode mode, size_t skip_rows, size_t num_
486
486
487
487
// the final offset for a list at level N is the size of it's child
488
488
size_type const offset = child.type .id () == type_id::LIST ? child.size - 1 : child.size ;
489
- out_buffers.emplace_back (static_cast <size_type*>(out_buf.data ()) + (out_buf.size - 1 ));
490
- final_offsets.emplace_back (offset);
489
+ out_buffers.push_back (static_cast <size_type*>(out_buf.data ()) + (out_buf.size - 1 ));
490
+ final_offsets.push_back (offset);
491
491
out_buf.user_data |= PARQUET_COLUMN_BUFFER_FLAG_LIST_TERMINATED;
492
492
} else if (out_buf.type .id () == type_id::STRING) {
493
493
// only if it is not a large strings column
494
494
if (std::cmp_less_equal (col_string_sizes[idx], strings::detail::get_offset64_threshold ())) {
495
- out_buffers.emplace_back (static_cast <size_type*>(out_buf.data ()) + out_buf.size );
496
- final_offsets.emplace_back (static_cast <size_type>(col_string_sizes[idx]));
495
+ out_buffers.push_back (static_cast <size_type*>(out_buf.data ()) + out_buf.size );
496
+ final_offsets.push_back (static_cast <size_type>(col_string_sizes[idx]));
497
497
}
498
498
// Nested large strings column
499
499
else if (input_col.nesting_depth () > 0 ) {
0 commit comments