From 10a06a1dc029f1ead60ab464e49beaf7a7dbe323 Mon Sep 17 00:00:00 2001 From: Karthikeyan Natarajan Date: Fri, 22 Sep 2023 02:13:30 +0530 Subject: [PATCH] fix missing null mask for parse error in string column names --- cpp/src/io/json/json_column.cu | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,