Hello, I am playing around with Lineage and gettin...
# ingestion
c
Hello, I am playing around with Lineage and getting an error when trying to set downstream lineage. Can someone advise?
Copy code
/** FS Downstream **/
        Downstream downstream = new Downstream()
                .setDataset(new DatasetUrn(new DataPlatformUrn("delta"), "somedataset", FabricType.DEV))
                .setType(DatasetLineageType.TRANSFORMED);

        DownstreamArray downstreamArray = new DownstreamArray(downstream);
        DownstreamLineage downstreamLineage = new DownstreamLineage().setDownstreams(downstreamArray);

        MetadataChangeProposalWrapper mcpw = MetadataChangeProposalWrapper.builder()
                .entityType("dataset")
                .entityUrn(new DatasetUrn(new DataPlatformUrn("delta"), "someotherdataset", FabricType.DEV))
                .upsert()
                .aspect(downstreamLineage)
                .build();

Trying to build the mcpw gives the following error: Caused by: java.lang.NullPointerException: aspectName could not be inferred from provided aspect and was not explicitly provided as an override

Note: the same exact code works if switching it to set upstream lineage instead of downstream
c
@colossal-sandwich-50049 There is no downstream aspect for dataset. So it not able to find its name in the list. You can check the available aspect for a entity here Please refer lineage example here
thank you 1