Hi, when calling `DataHubGraph.get_aspect(aspect="...
# troubleshoot
r
Hi, when calling
DataHubGraph.get_aspect(aspect="dataJobInfo")
, i'm getting this error:
avro.schema.AvroException: ('Datum union type not in schema: %s', None)
The problem lies on the
type
field, which should be either
AzkabanJobTypeClass
or
string
, but it has the value of
{"string": "SPARK"}
. I don't know how to resolve this? Is this related to the deprecation of class
AzkabanJobType
? Code to produce this error:
Copy code
graph = DataHubGraph(config=DatahubClientConfig(
    server='<https://demo.datahubproject.io/api/gms>',
    extra_headers={'cookie': f'{cookie}'}
))

job_info = graph.get_aspect(
    entity_urn='urn:li:dataJob:(urn:li:dataFlow:(spark,orders_cleanup_flow,PROD),orders_dedupe_job)',
    aspect='dataJobInfo',
    aspect_type=DataJobInfoClass,
)
Github issue: https://github.com/linkedin/datahub/issues/4289
b
Thank you @red-zebra-92204! We will ake a look at this and get back
❤️ 1