-
Notifications
You must be signed in to change notification settings - Fork 17
Closed
Description
When generating Data Package, using:
# https://github.com/frictionlessdata/datapackage-py
from datapackage import pull_datapackage
from sqlalchemy import create_engine
engine = create_engine('mysql://root@localhost/enliten')
# Push
pull_datapackage(
descriptor='enliten-datapackage/datapackage.json',
name="enliten-datapackage",
backend='sql',
engine=engine)
None of the resources have names (now required). This results in the foreignKeys generated in one of the resources in the datapackage.json referring to null resources.
"schema": {
"foreignKeys": [
{
"fields": "user_id",
"reference": {
"resource": null,
"fields": "id"
}
},
{
"fields": "group_id",
"reference": {
"resource": null,
"fields": "id"
}
}
]
(Found via this frictionlessdata/pilot-dm4t#19)