Area: UI
Sub-Area: Structured Properties
Applies to: OSS + Cloud
Issue
You expect a structured property to hold other properties, arrays or objects, and to show them as nested levels with indentation or expand and collapse controls. You don't see this in the UI.
You Might Be Asking
- Can a structured property contain other structured properties or objects?
- Did v0.3.12 add a display fix for nested structured properties?
- How do I store more than one value on a structured property?
- Why don't my structured properties show in the column sidebar?
Cause
DataHub structured properties are flat, so nested display controls don't exist.
- Each value is a string or a number (double).
- An assignment holds a list of these primitive values.
- A property can't contain other properties, objects or nested structures.
- The data types you can define in the CLI and SDK are
string,rich_text,number,dateandurn. There is no boolean or object type.
No v0.3.12 release note describes a nested structured property display fix. The v0.3.12 release notes list no structured property entries.
Solution
To store several values: set the property's cardinality to MULTIPLE. The default is SINGLE, which means the property takes one value. With MULTIPLE, the property holds a flat list of values.
To model a hierarchy: create separate flat structured properties, or use another DataHub feature. Structured properties can't represent a hierarchy.
If a structured property doesn't show in the column (schema) sidebar:
- On Cloud v0.3.11 and later, this fix is included. The fix solves an issue where structured properties didn't appear in the column sidebar even when the settings were enabled. See the v0.3.11 release notes. If you are on an earlier Cloud version, contact DataHub Support to upgrade. If you are on v0.3.11 or later and still don't see the properties, check the display settings in step 2.
- Open the property's Display Preferences and check the settings. Make sure "Hide Property" is off. Turn on "Show in Asset Sidebar" or "Show in Columns Table". "Show in Columns Table" is available only for properties that apply to columns.
For the full list of display settings, value types and limits, see the Structured Properties overview. To create and set properties through the API or SDK, see the Structured Properties API guide.