SYSTEM$READ_YAML_FROM_SEMANTIC_VIEW
functionsupportedAI & MLReturns the specification of a semantic model (in YAML format) for a semantic view.
Syntax
SYSTEM$READ_YAML_FROM_SEMANTIC_VIEW( '<semantic_view_name>' )
Parameters
| Name | Required | Description |
|---|---|---|
'semantic_view_name' | required | Name of the semantic view. If the semantic view is in a different schema or database than the current schema or database, specify the partial or fully qualified name (for example, my_schema.my_semantic_view or my_db.my_schema.my_semantic_view). |
Returns
Returns a VARCHAR value containing the specification for the semantic model in YAML format.
Usage notes
- If the name of the database, schema, or view is a double-quoted identifier (for example, if the name contains spaces), you must include double quotes around the name. For example:
Access control requirements
A role used to execute this SQL command must have at least one of the following privileges at a minimum: Privilege | Object | Notes Any | Semantic view | Operating on an object in a schema requires at least one privilege on the parent database and at least one privilege on the parent schema. For instructions on creating a custom role with a specified set of privileges, see Creating custom roles. For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.