cdm_data_loaders.pipelines.xsv.settings ¶
Settings for the XSV (CSV/TSV) ingestion pipeline for the KBase CTS.
XsvSchemaError ¶
Bases: RuntimeError
Raised when an XSV JSON Schema cannot be validated or converted to a PyArrow schema.
Subclasses carry a stable specification code and a short title; their docstrings state
why the schema is rejected. The XSV specification document is generated from these attributes.
Source code in src/cdm_data_loaders/pipelines/xsv/settings.py
UnsupportedXsvDialectError ¶
Bases: XsvSchemaError
Only JSON Schema Draft 2020-12 and the KBase Draft 2020-12 XSV metaschema are supported.
Source code in src/cdm_data_loaders/pipelines/xsv/settings.py
MissingRequiredColumnsError ¶
Bases: XsvSchemaError
XSV schemas must declare a non-empty list of column headers in the top-level required array.
Source code in src/cdm_data_loaders/pipelines/xsv/settings.py
InvalidXsvSchemaDefinitionError ¶
Bases: XsvSchemaError
The document is not valid JSON Schema or contains an invalid x-xsv-config parser block.
Source code in src/cdm_data_loaders/pipelines/xsv/settings.py
UnresolvableXsvRefError ¶
Bases: XsvSchemaError
All $ref pointers in an XSV schema must resolve against local $defs before conversion.
Source code in src/cdm_data_loaders/pipelines/xsv/settings.py
UnsupportedXsvArrowConstructError ¶
Bases: XsvSchemaError
Every XSV column must convert to a supported PyArrow type under a top-level object schema.
Source code in src/cdm_data_loaders/pipelines/xsv/settings.py
XsvIngestSettings ¶
Bases: FileFormatIngestSettings, TransformSettingsMixin
Settings for the XSV (CSV/TSV) ingestion pipeline.
Source code in src/cdm_data_loaders/pipelines/xsv/settings.py
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 | |
validated_schema
property
¶
The parsed, validated JSON Schema describing the XSV data.
first_pass_schema
property
¶
A loose schema used to validate only that each row has the correct number of columns.
parsing_config
property
¶
Cleaning/validation parameters for qsv, derived from the schema's x-xsv-config block.
pyarrow_schema
property
¶
The PyArrow schema used to type XSV columns during reading and output.