SYSTEM$READ_YAML_FROM_SEMANTIC_VIEW

functionsupportedAI & ML

docs.snowflake.com ↗

System functions

Returns the specification of a semantic model (in YAML format) for a semantic view.

Syntax

SYSTEM$READ_YAML_FROM_SEMANTIC_VIEW( '<semantic_view_name>' )

Parameters

NameRequiredDescription
'semantic_view_name'requiredName 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

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.

See also

Referenced by