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
As an implementer of GMNS, I'd like to understand if the required constraint applies to values or columns (or both)
Frictionless spec is really just checking for the column presence and allows for missing values.
If we don't want missing values, then we need to assert pattern or enum or other constraints.
The text was updated successfully, but these errors were encountered:
e-lo
added a commit
to e-lo/GMNSpy
that referenced
this issue
Jun 14, 2023
Provides the functionality to validate against a remote schema hosted on github by github reference (e.g. master HEAD, version tag, etc.). It also pulls out a "spec" as a class object to make it easier to pass around and abstract the differences between getting a spec from Github vs Local files.
This PR also:
- formats code per pre-commit
- refactors apply_schema_to_df into smaller functions
- updates errors and warning to be more helpful (pointing to files, etc)
- adds tests for field constraints in constraint_tests.py
- adds assert statements to basic_tests.py
Closes#25Closes#26
NOTE: Tests failing due to zephyr-data-specs/GMNS#70
Our intent was to use the term required to require column presence and prohibit missing values. I think this lines up with the definition used by Frictionless Table Schema's constraints:
Property
Type
Applies to
Description
required
boolean
All
Indicates whether this field cannot be null. If required is false (the default), then null is allowed. See the section on missingValues for how, in the physical representation of the data, strings can represent null values.
Is the issue actually in the frictionless python package's implementation of the term?
As an implementer of GMNS, I'd like to understand if the required constraint applies to values or columns (or both)
Frictionless spec is really just checking for the column presence and allows for missing values.
If we don't want missing values, then we need to assert pattern or enum or other constraints.
The text was updated successfully, but these errors were encountered: