datahub-project / datahub

The Metadata Platform for your Data and AI Stack
https://datahubproject.io
Apache License 2.0
9.94k stars 2.95k forks source link

A short description of the bug #11818

Open cateseale opened 2 weeks ago

cateseale commented 2 weeks ago

Describe the bug The urn copied from the Share button throws errors as using a : when needing a .

For example my urn copied direct from UI looks like this: urn:li:dataset:(urn:li:dataPlatform:file,Users/cate/git/datahub/titanic_data/titanic_dataset:csv,PROD)

which throws when adding contract:

[2024-11-07 15:33:17,899] ERROR    {datahub.entrypoints:218} - Command failed: Cannot define a data contract for non-existent entity urn:li:dataset:(urn:li:dataPlatform:file,Users/cate/git/datahub/titanic_data/titanic_dataset:csv,PROD)

Which confused me for ages before I noticed the colon - works when changed to: urn:li:dataset:(urn:li:dataPlatform:file,Users/cate/git/datahub/titanic_data/titanic_dataset.csv,PROD)

To Reproduce Steps to reproduce the behavior:

  1. Upload csv dataset from filesystem
  2. Navigate to dataset in UI and copy the urn from the Share button
  3. Use the urn when upsert-ing a data contract

Desktop (please complete the following information):