Sometimes it is desirable to perform analyses that extend beyond a single project. Relatics offers an interface for this purpose to store data from multiple workspaces in a data warehouse, such as Snowflake, Google BigQuery, Amazon Redshift, Databricks, and Microsoft Fabric.
Output data warehouse interface
Data from a data warehouse interface is split into four types of files:
- The manifest.json: A File that hosts metadata such as the timestamp, the name of the interface, and details about the other files.
- Entities: A file, in the format of the Parquet standard, for each type element in the query. This file consists of the columns, the workspace id from which the data originates, the type element id, followed by the properties of this type element specified in the query.
- Relationships: A file, in the format of the Parquet standard, consisting of a truth table specifying the relations between the elements of two type elements, for each type relation in the query. This file consists of the columns, the workspace id from which the data originates, the type element id of the from-type element, and the type element id of the to-type element.
- Workspaces: A Parquet file consisting of the workspace id en the given name.
Configure a data warehouse interface in the Relatics environment*
- In the overview with workspaces, click on
Environment administration.
- In the view Environment administration, click on the menu
Data warehouse interfaces.
- Click on New interface. As a result, the dialog Create data warehouse interface is opened.
- In the field Name, give the data warehouse interface a relevant name.
- In the field API key, select a Relatics API key
- The field Endpoint is automatically filled with the interface name. If necessary, this can be modified.
- In the field Daily on (UTC), select the time of the day when the data should be renewed.
- The Status can be toggled to enable/disable the interface.
- Click on Create. As a result, the detail view of the data warehouse interface is opened.
- Click on
Edit next to Query. As a result, the dialog Edit query is opened. - In the Edit query dialog, input the query.
- Click on Update. As a result, the dialog Edit query is closed.
- Click on
Edit next to Included workspaces. As a result, the dialog Edit included workspaces is opened. - In the Edit included workspaces dialog, select the workspaces relevant to the BI purpose.
- Click on Update. As a result, the dialog Edit included workspaces is closed.
Note:
- It is good practice to click the
Validate Query button after changing the query or included workspaces.
- With the
Run now button, a new dataset can be prepared. Ideal when setting up the interface between the data warehouse and Relatics.
- The data can be requested at any time, however the data will only be renewed once a day at the predefined time.
- It will take some time to process the data renewal. During the processing time, the interface will respond with an HTML status ‘503 Service Unavailable’. To avoid this message, schedule the interface in the data warehouse with some delay (i.e., one hour).
- A workspace can be included only once in a data warehouse interface.
- Properties of the datatype Optionset and RichText are not supported.