diff --git a/cpp/src/io/json/json_column.cu b/cpp/src/io/json/json_column.cu index 5d7fb9d6b43..06c097ecced 100644 --- a/cpp/src/io/json/json_column.cu +++ b/cpp/src/io/json/json_column.cu @@ -347,13 +347,15 @@ std::vector copy_strings_to_host(device_span input, cudf::io::parse_options_view options_view{}; options_view.quotechar = '\0'; // no quotes options_view.keepquotes = true; + auto nulls = cudf::detail::create_null_mask( + num_strings, mask_state::ALL_VALID, stream, rmm::mr::get_current_device_resource()); auto d_offset_length_it = thrust::make_zip_iterator(string_offsets.begin(), string_lengths.begin()); auto d_column_names = parse_data(input.data(), d_offset_length_it, num_strings, data_type{type_id::STRING}, - rmm::device_buffer{}, + std::move(nulls), 0, options_view, stream,