datahub icon indicating copy to clipboard operation
datahub copied to clipboard

Duplicated owners with the same type

Open DmytroYurchuk opened this issue 1 month ago • 2 comments

Describe the bug When assigning owners through ingestion using a transformer, duplicate owners appear for users who were previously assigned as owners via the UI with the same ownership role.

To Reproduce Steps to reproduce the behavior:

  1. Assign an owner to a dataset via the UI. Example: assign user test1 as a Business Owner.
  2. Configure simple_add_dataset_ownership transformer with config:
semantics: PATCH
replace_existing: False
owner_urns:
  - "urn:li:corpuser:[email protected]"
ownership_type: "BUSINESS_OWNER"
  1. Run ingestion with the transformer.
  2. Observe that the owner appears twice in the UI.
Image

Expected behavior Only one owner should appear for the user, without duplicates.

Image

Desktop (please complete the following information):

  • DataHub version 1.3.0

DmytroYurchuk avatar Nov 17 '25 10:11 DmytroYurchuk

@DmytroYurchuk , can you share the result of the following queries after assigning the owner from both UI and transformer

select * from metadata_aspect_v2 mav where urn = ''

select * from metadata_aspect_v2 mav where urn = '' and mav.aspect = 'ownership' and mav.version = 0

deepgarg760 avatar Nov 22 '25 17:11 deepgarg760