Managing data fabric tables in Workflow Data Fabric Hub
Summarize
Summary of Managing data fabric tables in Workflow Data Fabric Hub
Data fabric tables in Workflow Data Fabric Hub provide a virtual representation of data stored externally or locally within ServiceNow AI Platform, allowing users to interact with this data as if it were stored locally without duplication. Data stewards are responsible for creating and managing these tables, enabling seamless access to external data sources through a unified interface.
Show less
Managing and Viewing Data Fabric Tables
- Access lists of all data fabric tables via the Data fabric tables tab, with options to search by label or name.
- Filter tables by data source, connection, or creator.
- View tables from active connections under the Active tab and from inactive or unconfigured connections under the Others tab.
Primary Keys
Primary keys uniquely identify records in data fabric tables and enable references from other tables. Key points include:
- Primary keys from source tables are automatically mapped; if missing, a unique column must be chosen manually.
- No enforcement of primary key constraints occurs; uniqueness must be ensured by the user.
- Primary keys, once set, cannot be removed or modified without deleting and recreating the table.
- Without a primary key, references and searches are not possible.
Reference Tables
Data fabric tables can establish relationships by referencing other data fabric or local tables to ensure data integrity.
- Referencing local tables requires an administrator to create specific ACL rules to permit data fabric operations.
- Display attributes on referenced columns must be enabled to show values.
- Referenced tables must have at least one unique primary key column matching the data type of the source column.
Table Queries and Data Lifecycle
Each access to a data fabric table triggers a new query to the external data source. Retrieved data is held in memory only while the list or form is open, after which it is purged, ensuring data freshness and efficient memory use.
Limitations
- Data sources must not have case-sensitive table names to avoid schema load failures.
- References can only be made using a single primary key column; composite keys are not supported.
- Referenced tables must have exactly one primary key defined.
Operations Supported
- Create data fabric tables to access internal or external data sources.
- Update data mappings between source and fabric tables.
- Delete data fabric tables when no longer needed.
- View records currently accessible through data fabric tables.
- Change connections to point data fabric tables to different data sources.
- Deploy data fabric tables between ServiceNow instances using update sets.
Access data virtually from an external source or a local table on your instance using data fabric tables in Workflow Data Fabric Hub.
Overview of managing data fabric tables
A data fabric table is a virtual representation of data stored in another source, accessible within the ServiceNow AI Platform. It enables users to interact with data from another source as if it's stored locally, without duplicating the data. Data stewards are responsible for creating and managing data fabric tables using the process shown in this infographic.
Viewing data fabric tables
View a list of all the data fabric tables that data stewards have created on the Data fabric tables tab.
- Search for a data fabric table by label or name.
- Filter the list of tables by data source and connection.
- Filter the list of tables by creator.
- View a list of data fabric tables from active connections in the Active tab.
- View a list of data fabric tables from connections that are deactivated or not configured in the Others tab.
Defining primary keys
A primary key is used to indicate uniqueness and identify records in a data fabric table. Designating a column as a primary key enables you to create references to that column from other data fabric tables. When mapping data in a new data fabric table, primary keys from the source table are automatically defined in the target data fabric table. If the source table doesn’t have a primary key, you can create one in the target table by choosing a column with unique values.
Note the following details when defining primary keys:
- Selecting a primary key doesn't enforce primary key constraints on the data fabric table or on the remote system. You must verify that records identified by the primary key are unique.
- Once you define a primary key, it can't be removed. If you determine that you need to change the primary key later, you must delete and recreate the data fabric table first.
- If you decide not to define a primary key when creating a data fabric table, you can do so by editing the table later. Note that without a primary key, you can't create references to this table and searches won't work until a primary key is defined.
- For every primary key column identified in the source table, a corresponding primary key is automatically created in the data fabric table. Once the data fabric table is created, you can't modify the primary keys that were derived from the source table.
- You can't use a reference column as a primary key.
Reference tables
When mapping external source columns to a data fabric table, you can add references to other tables. Establishing references between tables creates a relationship between the two tables and provides data integrity. A data fabric table can reference another data fabric table or a local table on your instance. A local table can also reference a data fabric table.
Note the following requirements when creating references between tables:
- To reference a local table on your instance from a data fabric table, an instance administrator must create an ACL rule with the data_fabric record operation on the local table. For example, to create a reference to the
User [sys_user] table, the following ACL rule is required:
- Type: record
- Operation: data_fabric
- Name: User [sys_user]
- To see values in a reference column when viewing records in the new data fabric table, you must set the Display attribute to true for the referenced column. You can manage this attribute in the referenced table's definition. See Select a field as the table display value.
- Ensure the referenced table has at least one primary key column.
- Ensure the primary key column in the referenced table contains unique values.
- Ensure the primary key column matches the data type of the source column.
Table queries
Records retrieved from a data stored and stored in a data fabric table have a finite duration, or life cycle, within the ServiceNow AI Platform.
After a data fabric table is connected to a data source, each time the data fabric table is viewed or accessed, a new query is made to the data source. The retrieved data lives in memory for as long as the list or form appears. After you close the list or form, that retrieved data is purged from memory. The next time that you use or view the retrieved data in the data fabric table, records are repopulated from the data source.
Data fabric table limitations
- When mapping data, ensure that the data source does not use case-sensitive table names. For example, if both MY_TABLE and my_table exist in the database, the schema will not load because the system cannot differentiate between the tables.
- When creating a reference to another table, you can only select one primary key column as the reference key. You can't select a composite key as the reference key.
- When creating a reference to another table, you can only reference a table that has one primary key defined.