and another doubt regarding uploading downstreams ...
# troubleshoot
a
and another doubt regarding uploading downstreams and upstreams... we have developed a custom spark listener using the spline library and we can emit downstreams at column-field level but downstreams are not present in datahub... there isn't any error. Where can I see logs to help me in the tool?
d
Can you see these edges on the Lineage UI or you can’t see there as well?
a
I can't see them, just the upstreams ones
d
Are you sure you are sending it in? Can you generate some sample mcps and send them to me?
a
OK, wait a moment please. Thanks for your help
Copy code
MetadataChangeProposalWrapper(entityType=dataset, entityUrn=urn:li:dataset:(urn:li:dataPlatform:athena,datahub_test.lineage,PROD), changeType=UPSERT, aspect={fineGrainedLineages=[{downstreamType=FIELD, transformOperation=substring(productgroup,5,length(productgroup)), downstreams=[urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:athena,datahub_test.lineage,PROD),productgroup_transf)], upstreamType=FIELD_SET, upstreams=[urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:athena,t24_snapshots.aa_arrangement,PROD),Set(productgroup))]}, {downstreamType=FIELD, transformOperation=year(cast(startdate)), downstreams=[urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:athena,datahub_test.lineage,PROD),startyear)], upstreamType=FIELD_SET, upstreams=[urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:athena,t24_snapshots.aa_arrangement_sim,PROD),Set(startdate))]}, {downstreamType=FIELD, transformOperation=recid, downstreams=[urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:athena,datahub_test.lineage,PROD),key)], upstreamType=FIELD_SET, upstreams=[urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:athena,t24_snapshots.aa_arrangement,PROD),Set(recid))]}, {downstreamType=FIELD, transformOperation=concat(productline,arrstatus), downstreams=[urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:athena,datahub_test.lineage,PROD),concatenation)], upstreamType=FIELD_SET, upstreams=[urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:athena,t24_snapshots.aa_arrangement_sim,PROD),Set(arrstatus)), urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:athena,t24_snapshots.aa_arrangement,PROD),Set(productline))]}], upstreams=[{type=TRANSFORMED, dataset=urn:li:dataset:(urn:li:dataPlatform:athena,t24_snapshots.aa_arrangement_sim,PROD)}, {type=TRANSFORMED, dataset=urn:li:dataset:(urn:li:dataPlatform:athena,t24_snapshots.aa_arrangement,PROD)}]}, aspectName=upstreamLineage)
@dazzling-judge-80093
FineGrainedLineage are not inserted but I can see them at graphql..
message has been deleted
a
@astonishing-answer-96712
a
Thank you @acceptable-terabyte-34789, could you check to make sure you access control policies are set correctly to view the lineage in the UI, as per this blog https://blog.datahubproject.io/recent-improvements-to-user-group-management-and-fine-grained-access-control-in-datahub-8d78a4ad2388
a
we logged as admin user..and nothing changed
I post the mcpw clearer:
Copy code
MetadataChangeProposalWrapper(entityType=dataset, entityUrn=urn:li:dataset:(urn:li:dataPlatform:athena,datahub_test.lineage,PROD), changeType=UPSERT, 
=======================================================================================
aspect={fineGrainedLineages=[{downstreamType=FIELD, transformOperation=substring(productgroup,5,length(productgroup)), downstreams=[urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:athena,datahub_test.lineage,PROD),productgroup_transf)], upstreamType=FIELD_SET, upstreams=[urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:athena,t24_snapshots.aa_arrangement,PROD),Set(productgroup))]}, {downstreamType=FIELD, transformOperation=year(cast(startdate)), downstreams=[urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:athena,datahub_test.lineage,PROD),startyear)], upstreamType=FIELD_SET, upstreams=[urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:athena,t24_snapshots.aa_arrangement_sim,PROD),Set(startdate))]}, {downstreamType=FIELD, transformOperation=recid, downstreams=[urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:athena,datahub_test.lineage,PROD),key)], upstreamType=FIELD_SET, upstreams=[urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:athena,t24_snapshots.aa_arrangement,PROD),Set(recid))]}, {downstreamType=FIELD, transformOperation=concat(productline,arrstatus), downstreams=[urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:athena,datahub_test.lineage,PROD),concatenation)], 
=========================================================================================
upstreamType=FIELD_SET, upstreams=[urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:athena,t24_snapshots.aa_arrangement_sim,PROD),Set(arrstatus)), urn:li:schemaField:(urn:li:dataset:(urn:li:dataPlatform:athena,t24_snapshots.aa_arrangement,PROD),Set(productline))]}],upstreams=[{type=TRANSFORMED, dataset=urn:li:dataset:(urn:li:dataPlatform:athena,t24_snapshots.aa_arrangement_sim,PROD)}, {type=TRANSFORMED, dataset=urn:li:dataset:(urn:li:dataPlatform:athena,t24_snapshots.aa_arrangement,PROD)}]}, aspectName=upstreamLineage)
a
@big-carpet-38439 any idea why this UI visibility issue might be happening with fine grained lineage?