Datatamer / tamr-client

Programmatically interact with Tamr
https://tamr-client.readthedocs.io
Apache License 2.0
11 stars 25 forks source link

Please highlight that attributes.create(attr_spec) only applies to source: Doc improvement #474

Open nw298 opened 3 years ago

nw298 commented 3 years ago

💁 Possible Solution

It'd be helpful if there was a note that explains that attributes.create(attr_spec) should be applied to only source datasets and not unified datasets.

skalish commented 3 years ago

I believe the issue here is that creating attributes that appear in the unified dataset must be done using the projects/{project_id}/attributes endpoints. This should be captured in a tutorial explaining how to create unified attributes.

This should be reflected in the modeling of such attributes in tamr_client, probably as a new dataclass UnifiedAttribute that is handles creation (and other) actions appropriately. We could potentially put in some safeguards to prevent attempts to create attributes on UnifiedDataset objects too.