Skip to content

Commit

Permalink
fix missing null mask for parse error in string column names
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikeyann committed Sep 21, 2023
1 parent dcac6cc commit 10a06a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cpp/src/io/json/json_column.cu
Original file line number Diff line number Diff line change
Expand Up @@ -347,13 +347,15 @@ std::vector<std::string> copy_strings_to_host(device_span<SymbolT const> 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,
Expand Down

0 comments on commit 10a06a1

Please sign in to comment.