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 I am unable to proceed with an ingestion of a basic SQL query through the CLI in order to generate lineage between tables existing in datahub, using the following command.
❯ datahub ingest -c lineage_datahub.yaml
Error :
'Unable to emit metadata to DataHub GMS: Failed to validate record with class com.linkedin.dataset.UpstreamLineage:'
In queries.json I only have the following content :
{"query": "CREATE TABLE \"dev-datalake-gold-entities\".countries AS select * FROM\n\"dev-datalake-silver\".countries_hub_vw"}
I also attempted to do this through the Python SDK, I have a minimal example where I obtain the lineage results, but I am unsure whether I can emit this metadata from the Python SDK, I haven't found any example or similar usecase.
fromdatahub.emitter.rest_emitterimportDatahubRestEmitterfromdatahub.ingestion.graph.clientimportDatahubClientConfig, DataHubGraphquery=""" INSERT INTO "dev-datalake-gold-entities".countries SELECT countries_hub.country_code, FROM "dev-datalake-silver".countries_hub_vw countries_hub"""gms_endpoint="http://localhost:8080"token=""graph=DataHubGraph(
DatahubClientConfig(
server=gms_endpoint,
token=token,
)
)
lineage=graph.parse_sql_lineage(sql=query, platform="athena")
print(lineage)
emitter=DatahubRestEmitter(
gms_server=gms_endpoint,
token=token,
)
# TODO : how to emit above lineage to datahub?
Environment
acryl-datahub 0.15.0.5
MacOS M3 14.5
The text was updated successfully, but these errors were encountered:
Currently I am unable to proceed with an ingestion of a basic SQL query through the CLI in order to generate lineage between tables existing in datahub, using the following command.
❯ datahub ingest -c lineage_datahub.yaml
Error :
'Unable to emit metadata to DataHub GMS: Failed to validate record with class com.linkedin.dataset.UpstreamLineage:'
My config for the YAML file looks like :
In queries.json I only have the following content :
I also attempted to do this through the Python SDK, I have a minimal example where I obtain the lineage results, but I am unsure whether I can emit this metadata from the Python SDK, I haven't found any example or similar usecase.
Environment
acryl-datahub 0.15.0.5
MacOS M3 14.5
The text was updated successfully, but these errors were encountered: