colossal-sandwich-50049
07/20/2022, 4:08 PM/** 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