In this article
Parsing a CSV and validating its typed values are separate steps; missing-value rules can change which values reach a training pipeline.
Start with the table’s physical interpretation
A tabular file first needs a parsing contract: delimiters, quoting and header interpretation determine which cells exist. Frictionless separates Table Dialect from Table Schema. A schema describing an integer column is unhelpful if the reader has already split quoted text into several columns.
For an illustrative support-ticket export, a description may contain commas and embedded line breaks. Check the dialect before blaming malformed feature values. A parser can produce a readable table with shifted columns, so successful file opening alone is weak evidence of a correct import.
Missing values precede type conversion
Table Schema describes missing-value markers separately from logical types. When an implementation converts configured missing markers to null, that conversion precedes type-specific string conversion. An empty cell and a literal text value therefore need explicit treatment.
Suppose a language code happens to match a configured missing marker. A broad global rule can erase legitimate categories. Inspect marker behavior against real field values and the schema version supported by the chosen library. Do not copy a generic missing-value list into every dataset without examining its meaning.
Constraints apply to the logical value
Types and constraints describe what values mean after parsing. Required fields, allowed values and ranges can identify failures before feature construction. A numeric-looking identifier may still belong in a string field if formatting is meaningful.
Consider identifiers with leading zeros. Casting them to integers can merge distinct external references even though the cast succeeds. The schema should reflect the intended identity contract, not merely whichever type an inference tool guessed from a small sample of rows.
Keys describe relationships, not just columns
The current standard includes primary and foreign-key declarations. A relationship between records matters when labels live in a separate resource. Validate key coverage before a join; otherwise examples can be dropped or paired with an unintended annotation.
Use the capabilities documented for the actual validator release. A descriptor written against a newer standard may contain properties an older implementation does not enforce. Preserve that distinction when reporting which constraints were checked successfully.
Keep the validation report actionable
Frictionless validation returns structured reports with task and error information. Retain enough context to locate the source row and field, rather than storing only an overall valid flag. Review rejected records before choosing whether to repair, exclude or return them to the publisher.
Passing a schema confirms the declared structural and value constraints. It does not demonstrate that a label is correct or that a training split represents deployment traffic. Treat schema validation as an early data-preparation step with a precise, inspectable scope.
Primary references
Related explanations: Document provenance; Document-level splits.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.