Classes | Public Attributes | List of all members
cudf::io::json_reader_row_diagnostics Struct Reference

Optional row-level diagnostics produced by read_json_with_row_diagnostics. More...

#include <cudf/io/json.hpp>

Classes

struct  schema_mismatch_rows
 Row indices for one top-level column that had schema mismatches. More...
 

Public Attributes

std::vector< std::string > top_level_columns_with_schema_mismatch
 Top-level column names whose value tree contained at least one JSON node whose category (NC_STRUCT / NC_LIST / NC_VAL) did not match the requested schema type. Empty when the reader is invoked without a user-supplied schema or when no mismatches were observed.
 
std::vector< schema_mismatch_rowstop_level_columns_with_schema_mismatch_rows
 Row indices grouped by top-level output column for schema mismatches. More...
 

Detailed Description

Optional row-level diagnostics produced by read_json_with_row_diagnostics.

Reserved for reader-specific diagnostics whose collection has additional cost and whose payload is not part of the ABI of json_reader_diagnostics.

Definition at line 968 of file json.hpp.

Member Data Documentation

◆ top_level_columns_with_schema_mismatch_rows

std::vector<schema_mismatch_rows> cudf::io::json_reader_row_diagnostics::top_level_columns_with_schema_mismatch_rows

Row indices grouped by top-level output column for schema mismatches.

Each entry names a top-level output column and lists the rows in that column where at least one descendant JSON node's category did not match the requested schema type. The indices are sorted, unique, and relative to the final returned table, not to an internal reader batch. Entries are ordered consistently with top_level_columns_with_schema_mismatch.

Definition at line 994 of file json.hpp.


The documentation for this struct was generated from the following file: