In this article
Retain raw headers, positional identity and the reviewed unique-name mapping.
An exporter emits repeated column names after joining tables. One reader renames duplicates, another maps rows into dictionaries and keeps a single value, so equivalent files yield different training features.
The mechanism that changes the example
Column position and column name are different identities. Converting a repeated header into a unique mapping requires an explicit resolution rule before a feature schema can be trusted.
Define the comparison boundary
Inspect the physical header sequence before converting a row into a name-keyed mapping. A mapping with unique keys cannot represent several separate positions under one identical name without an additional rule. Later schema checks cannot recover an overwritten source position.
Test collisions introduced by the header-normalization policy as well as literal duplicates. Trimming whitespace or changing case can turn initially different names into the same consumer key. Preserve the original header and the exact normalization revision.
Resolve the ambiguity before feature selection. Source-qualified names can keep both measurements, while an explicit rejection can return the export for correction. Automatically selecting the last occurrence or adding numbered suffixes is not a semantic resolution unless the consumer contract explains which original field every resulting feature represents.
A constructed test case
A tiny table has repeated score headers but different values in the corresponding positions. The fixture passes only when both source positions are accounted for or the input is explicitly rejected before feature construction.
A reproducible validation procedure
Inspect the raw header before constructing named records. Test repeated exact names and names that collide after trimming. Require source-qualified names or an approved mapping, then compare all original positions with final features.
Include an unchanged control and a deliberately invalid case. Verify that the checker distinguishes them before testing the complete release.
Exercise the actual preparation path, including later serialization and reload. Limit retained diagnostic content to the evidence required for this comparison.
Evidence needed for acceptance
Retain raw headers, positional identity and the reviewed unique-name mapping.
Containment and recovery
Unique headers do not guarantee equivalent semantics when different sources reuse the same feature name.
Quarantine an invalid release candidate or use an explicit partial-release rule. Preserve the last approved artifact and record corrections without silently rewriting historical inputs.
Interpretation and references
Implementation references: Arrow CSV conversion; JSON data interchange specification.
This is a proposed engineering validation, not an executed Retrivium benchmark. Documentation specifies interfaces; dataset acceptance needs its own evidence and must be repeated after relevant dependency changes.
Related reading
Continue with JSON Lines for AI data: a record boundary is not a feature schema; Frictionless Table Schema: validate logical values before feature building. These guides supply adjacent context; the decision in this article remains the specific example-preservation check above.
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.