handsome-belgium-11927
08/27/2021, 2:26 PMmammoth-bear-12532
better-orange-49102
08/29/2021, 4:07 AMhandsome-belgium-11927
08/30/2021, 9:18 AMhelpful-optician-78938
09/02/2021, 7:50 PMpython
from datahub.emitter.mcp import MetadataChangeProposalWrapper
// construct the profile
my_profile = DatasetProfileClass(timestampMillis=..., <rest of the params>)
// keep the first 3 params unchanged
mcp = MetadataChangeProposalWrapper(
entityType="dataset",
aspectName="datasetProfile",
changeType=ChangeTypeClass.UPSERT,
entityUrn=urn_builder(self.resource),
aspect=my_profile,
)
// emit via rest_emitter/ kafka_emitter
my_emitter.emit(item=mcp)
handsome-belgium-11927
09/03/2021, 7:06 AM