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
Currently, when a validating a Schema against a Table an UnsupportedOperationException is thrown if the Schema defines foreign keys to another resource.
java.lang.UnsupportedOperationException: Foreign key references across package resources are not supported
at io.frictionlessdata.tableschema.fk.ForeignKey.validate(ForeignKey.java:148)
at io.frictionlessdata.tableschema.schema.Schema.validate(Schema.java:657)
at io.frictionlessdata.tableschema.Table.validate(Table.java:634)
This means validating headers, primary keys and foreign keys (in resource) is not supported for this usecase (without an exception) without implementing workarounds such as removing all foreign keys before calling table.validate().
Split the validation (for example: validateHeaders(), validatePrimaryKeys(), validateForeignKeys(boolean ignoreCrossResource). This would also help with clarity in terms of what is validated