SEMANTIC_TABLES view

This Information Schema view displays a row for each logical table in a semantic view in the specified (or current) database.

See also:

SEMANTIC_TABLES view (Account Usage)

Columns

Column nameData typeDescription
semantic_view_catalogVARCHARDatabase to which the semantic view belongs.
semantic_view_schemaVARCHARSchema to which the semantic view belongs.
semantic_view_nameVARCHARName of the semantic view.
nameVARCHARName of the semantic table.
base_table_catalogVARCHARDatabase to which the base table belongs.
base_table_schemaVARCHARSchema to which the base table belongs.
base_table_nameVARCHARName of the base table.
primary_keysARRAY(VARCHAR)List of the primary key columns of the table.
synonymsARRAY(VARCHAR)List of the synonyms for the table.
distinct_rangesARRAY(OBJECT)

Array of OBJECT values, which describe the constraints for the logical table containing the range. Each object contains the following key-value pairs:

  • constraint_name: The name of the constraint.
  • end_column: The name of the column that represents the end of the range.
  • start_column: The name of the column that represents the start of the range.
commentVARCHARDescription of the semantic table.
definitionVARCHARThe SQL query that defines the logical table, if the table is defined as a SQL query rather than a physical table. NULL if the table uses a physical base table.