A schema is a collection of tables that provide the underlying structure for a dashboard. This structure must be created before dashboards and Insights can be designed.
To begin, you should be familiar with the “Schemas” page, displaying a list of all the existing schemas. In the Schemas page, you can sort any column (except for the “Permission” column) by clicking on the header of that column. A small arrow appears next to the header indicating the sorting column and direction (ascending/descending).
The “Schema” column contains the name of each schema. Select directly on a schema name in this column to view or modify its definition, including tables, columns, filters, and joins.
The “Status” column indicates whether the schema’s data is loaded and current. If an exclamation mark appears in this column, it means that the schema’s data needs to be loaded.
The “Permission” column lists the permission granted for the logged-in user for each schema.
The “Owner” column contains the name of the owner for each of the listed schemas.
“Last Load Status” displays the timestamp from the most recent data load, or a message indicating that the data needs to be loaded. To view a schema loading activities and type (full/incremental), hover over that schema and click Details.
“Data Size” indicates the size of the schema including all of its data and measures after the data is loaded into the schema.
“Total Data Size” in the header bar indicates memory consumed by all schemas for which data is loaded.
Use the checkboxes to access the schema settings, export, or delete one or more schemas. When you check a box, the “Actions” menu appears in the upper right-hand corner of the screen.
Use the ”+” symbol to add a new schema.
Navigate to the Schema Definition page by clicking on a schema name. Here, you can view statistics about the schema and access its tables. Each table is represented with an icon representing its data source. For example, if the table uses a CSV file as its data source, it will show an icon with “CSV” on it. If the data source is an SQL, it will show “SQL”. If the table is multi-source, the icon will show “Multi”, etc. To access a table definition, select the down arrow corresponding to that table and select “Table Details”.
- Go to the “Schemas” page.
Select + New in the upper right-hand corner of the screen.
Select “Create Schema”. The “New Schema” dialogue box appears.
- Enter a schema name and description.
Start creating tables in the schema:
- Specify the data source type to start adding tables to your schema.
- Select a data source.
- Create a query and select Update Columns.
- Once the schema has been created, customize its tables and columns.
You can edit a schema settings from the “Schemas” tab in the “Schema” page. To access it:
Navigate to the “Schemas” tab in the “Schema” page.
Select the checkbox corresponding to one schema only to edit its settings. The “Actions” menu appears in the upper right-hand corner of the screen. Note that selecting more than one checkbox affects the available items in the “Actions” menu.
Select “Actions” in the upper right-hand corner of the screen.
Select “Schema settings” from the drop-down menu. The “Schema Settings” window appears.
- Select Save Changes.
You can edit a schema settings in the definition page of that schema:
Navigate to the “Schemas” tab in the “Schema” section.
Select any schema to access its definition, by clicking on its row, not the checkbox. The schema definition page opens.
Select the gear (settings) icon in the upper right-hand corner of the screen. The “Schema Settings” window appears.
- Select Save Changes.
In the schema settings window, you can add/edit a schema description.
To add or edit a schema description, simply use the following steps:
- Select the “Settings” tab.
- Add or edit the schema description in the “Schema Description” field.
Select Save Changes.
In the schema settings window, you can easily share a schema with other users and groups, and set their permissions on that schema.
To share a schema with other users and groups, simply use the following steps:
Select the “Sharing” tab.
Select ”+” in the upper right-hand corner to add users/groups. The search bar appears with the least privilege (i.e. “Can View”) selected by default.
Enter a name, email address, or group name to share the schema with. Once you start typing, suggestions will be displayed to help you choose.
Select a user/group. The permissions menu appears.
- Select a permission for the selected user/group.
Select Save. Note that each permission includes the one on top of it (e.g. if a user has the “Can Share” permission, they will automatically have the “Can View” permission). The sharing wizard closes, returning back to the “Shared With” list, showing all the users along with their permission level.
Select the permission (in blue) corresponding to a user to either change their permission level, or remove them and stop sharing the schema with them.
- Select a privilege and select Save, or Cancel to ignore the changes.
When loading a schema, you can easily set the extraction sequence for the tables within that schema. This can be done by giving each table a number, and they will be extracted in an ascending order according to that number. For example, if there are five tables; two of which share the same load order of 1 and the rest have the load order of 2, the two tables of the order 1 will be extracted in parallel first. After loading is successful, the rest of the tables will follow.
To set the tables extraction sequence, simply use the following steps:
Select the “Tables load order” tab. The tables list appears with the corresponding extraction sequence number, defaulted at 10.
- Select in the “Table Load Order” column corresponding to any table and enter the extraction order for that table. The default extraction order for all tables is 10, meaning that they will all be extracted in parallel. The number 10 is set so that you can easily set other tables to be extracted first. Note that tables having the same load order will be extracted in parallel.
- Select Reset Tables Load Order to reset any values you may have changed back to the default value, i.e. 10.
- Select Save Changes.
You can use the schema definition page to edit a schema structure and the underlying tables for that schema.
To access a schema definition page:
- Go the “Schema” page.
Select a schema (not the checkbox) to edit its structure. The schema definition page opens.
You can preview table data from the Table Editor from the Columns section.
The Preview dialog shows sample data from the table along with column-level statistics including MINVALUE, MAXVALUE, and #NULLS.
Preview Data also supports previewing data for Data Lake data source tables that are configured as Remote tables.
To preview table data for a given schema:
- Select a table from the Schema Designer to open the Schema Table Editor.
- In the Columns section, select Preview Data to review the column statistics and sample rows.
- Select X to close the Preview dialog.