SEMANTIC_RELATIONSHIPS view¶
This Information Schema view displays a row for each relationship in a semantic view in the specified (or current) database.
Columns¶
Column name  | 
Data type  | 
Description  | 
|---|---|---|
  | 
VARCHAR  | 
Database to which the semantic view belongs.  | 
  | 
VARCHAR  | 
Schema to which the semantic view belongs.  | 
  | 
VARCHAR  | 
Name of the semantic view.  | 
  | 
VARCHAR  | 
Name of the semantic relationship.  | 
  | 
VARCHAR  | 
Name of the semantic table referencing the other table.  | 
  | 
ARRAY(VARCHAR)  | 
List of the names of the columns referring to the columns of the other table.  | 
  | 
VARCHAR  | 
Name of the semantic table being referenced.  | 
  | 
ARRAY(VARCHAR)  | 
List of the names of the columns being referenced. If the ASOF keyword was specified for a column in the REFERENCES clause, the element for the column is a JSON object that contains the following fields: 
 For example, for this RELATIONSHIPS clause: RELATIONSHIPS (
  customer_address(ca_cust_id)
    REFERENCES customer,
  orders(o_cust_id, o_ord_date)
    REFERENCES
    customer_address(
      ca_cust_id,
      ASOF ca_start_date
    )
)
The  +--------------------------------+
| REF_KEYS                       |
|--------------------------------|
| [                              |
|   "C_CUST_ID"                  |
| ]                              |
| [                              |
|   "CA_CUST_ID",                |
|   {                            |
|     "column": "CA_START_DATE", |
|     "type": "ASOF"             |
|   }                            |
| ]                              |
+--------------------------------+
 |