You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the of migration from v4 to v5 of frictionless-py in validata.fr, we experienced an unexpected missing-label error when validating a tabular data with header_case=False dialect option and using a column which is lower case instead of upper case as in the schema fields.
{'valid': False,
'stats': {'tasks': 1, 'errors': 2, 'warnings': 0, 'seconds': 0.004},
'warnings': [],
'errors': [],
'tasks': [{'name': 'memory',
'type': 'table',
'valid': False,
'place': '<memory>',
'labels': ['aa', 'BB'],
'stats': {'errors': 2,
'warnings': 0,
'seconds': 0.004,
'fields': 4,
'rows': 1},
'warnings': [],
'errors': [{'type': 'missing-label',
'title': 'Missing Label',
'description': 'Based on the schema there should be a '
"label that is missing in the data's "
'header.',
'message': "There is a missing label in the header's "
'field "AA" at position "3"',
'tags': ['#table', '#header', '#label'],
'note': '',
'labels': ['aa', 'BB'],
'rowNumbers': [1],
'label': '',
'fieldName': 'AA',
'fieldNumber': 3},
{'type': 'missing-label',
'title': 'Missing Label',
'description': 'Based on the schema there should be a '
"label that is missing in the data's "
'header.',
'message': "There is a missing label in the header's "
'field "bb" at position "4"',
'tags': ['#table', '#header', '#label'],
'note': '',
'labels': ['aa', 'BB'],
'rowNumbers': [1],
'label': '',
'fieldName': 'bb',
'fieldNumber': 4}]}]}
Same result with command line validation.
I have put "schema-sync" to reproduce more closely our use case, but it does not seem to be related with the actual issue.
The text was updated successfully, but these errors were encountered:
pierrecamilleri
changed the title
Unexpected missing-label error with false header_case
Unexpected missing-label error with option header_case = FalseAug 30, 2024
pierrecamilleri
changed the title
Unexpected missing-label error with option header_case = False
Unexpected "missing-label" error with option header_case = FalseAug 30, 2024
- fix: deprecated dependencies ([PR
1674](#1674))
- fix: unexpected "missing-label" error with option `header_case =
False`
([#1635](#1635))
- fix: KeyError when a "primaryKey" is missing
([#1633](#1633))
- fix: unexpected field-error for a boolean "example" with "trueValues"
or
"falseValues" properties
([#1610](#1610))
Overview
In the of migration from v4 to v5 of frictionless-py in validata.fr, we experienced an unexpected
missing-label
error when validating a tabular data withheader_case=False
dialect option and using a column which is lower case instead of upper case as in the schema fields.For example:
Using python, the validation report is invalid containting two
missing-label
errors:Output:
Expected behaviour
According to the documentation of
HeaderCase
Dialect
parameter, I was expected a valid report.Other details and experimentations
Used Frictionless version 5.16.1, last commit on main branch
Same result with command line validation.
I have put "schema-sync" to reproduce more closely our use case, but it does not seem to be related with the actual issue.
The text was updated successfully, but these errors were encountered: