Skip to content

fix: avoid cell errors for header mismatches - #1799

Open
stefan1condeescu wants to merge 1 commit into
frictionlessdata:mainfrom
stefan1condeescu:fix-1791-missing-cell-errors
Open

fix: avoid cell errors for header mismatches#1799
stefan1condeescu wants to merge 1 commit into
frictionlessdata:mainfrom
stefan1condeescu:fix-1791-missing-cell-errors

Conversation

@stefan1condeescu

@stefan1condeescu stefan1condeescu commented Jul 28, 2026

Copy link
Copy Markdown

With fieldsMatch: "exact", a header mismatch was reported twice: once as missing-label or extra-label, and again as a cell error for every row.

This PR makes the expected fields follow the header length. Integrity checks and analyzer statistics now only use fields that are actually present, while irregular rows still report cell errors as expected.

I added regression tests for missing and extra labels, integrity constraints, and irregular rows. The full test suite passes (1876 passed, 292 skipped).

When the header has fewer or more columns than the schema, match the expected fields to the header. This avoids reporting missing-cell or extra-cell errors for every data row.

Validation and analysis now only use fields that are actually available, while irregular rows still report cell errors as expected.

Add regression tests for these cases.

Refs frictionlessdata#1791
@stefan1condeescu
stefan1condeescu force-pushed the fix-1791-missing-cell-errors branch from f03d3f7 to 7b06854 Compare July 28, 2026 15:51
@stefan1condeescu
stefan1condeescu marked this pull request as ready for review July 28, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: missing field generates "missing-cell" errors additionnaly to the "missing-label" error

1 participant