CatalogWorkspaceContentService.

get_label_elements

get_label_elements( workspace_id: str, label_id: str ) -> List[str]

Get existing values for a label.

Under-the-hood, it basically executes SELECT DISTINCT from corresponding table. Values are automatically sorted lexicographically.

Parameters

nametypedescription
workspace_idstrWorkspace identification string e.g. "demo".
label_idstrLabel ID. We support string or ObjId types. String may not contain "label/" prefix, we append it if necessary.

Returns

typedescription
list of label values