Adding Azure Synapse Warehouses
An Azure Synapse data warehouse contains the tables and views that you want to import as fact datasets and dimension datasets into AtScale cubes. It also contains aggregate-table instances that either you or the AtScale engine creates in a database that you specify.
Before you begin
- Ensure that your user ID in the Design Center is assigned the Super User role or is assigned the Manage Data Warehouses role permission.
- Ensure that you know the database to use for aggregate tables to be built in the data warehouse. You should create this database if it is not available; AtScale does not automatically create a database if one does not exist.
- Ensure that you know the schema to use for aggregate tables to be built in the data warehouse. AtScale creates tables, drops tables, and reads and writes aggregate data to this schema. You should create this schema if it is not available.
- To be able to load data into Synapse through AtScale you need to create AtscaleAzureDataLakeStore external data source, with credentials of the user that sets up the data warehouse in AtScale. For details, see Use external tables with Synapse SQL.
Consider that AtScale supports Gen1 and Gen2 of ADLS. For details, see Azure Data Lake Storage Gen1 and Azure Data Lake Storage Gen2.
Adding Azure Synapse data warehouse
-
Go to Settings > Data Warehouses and choose Create Data Warehouse to open the Add a Data Warehouse dialog box.
-
Select Azure Synapse Analytics SQL in Type of Data Warehouse .
-
Enter a unique name for the data warehouse. AtScale displays this name in the Design Center and uses it in log files.
-
Enter the name of the External Connection ID. This input will be inherited by the Name value, but can be overridden by enabling the Override generated value slider.
-
Enter the name of the Database for AtScale to use when creating aggregate tables.
-
Enter the name of the Aggregate Schema for AtScale to use when creating aggregate tables.
-
Choose whether to set the data warehouse as read-only:
- Select the Read-only source option if AtScale will be configured to access this database with credentials that do not have permission to create new tables, or if you need to prevent AtScale from placing any aggregate tables in this data warehouse.
- If Read-only source is enabled upon editing an existing data warehouse with aggregates present, all existing aggregates stored in this data warehouse will be deactivated.
-
If you need to use objects in a file system:
-
Go to the Configure Filesystem section and choose the Enable Filesystem option.
-
Choose the file system type.
-
If you have selected ADLS, enter the following details:
- URI
- Remote Filesystem Prefix: The remote directory under which AtScale will upload its files. The default is to upload to the root of the remote file system. If the remote directory does not exist, it will be created.
- AtScale's Registered Azure Application ID: The registered Azure Application ID created for AtScale by your Azure administrator.
- AtScale's Azure Key: The key created by your Azure Administrator for the registered AtScale application.
- Azure Account's OAuth 2.0 Token Endpoint: The OAuth 2.0 token endpoint for your account.
-
If you have selected ADLS2, enter the following details:
- URI
- Storage account name
- Container name
- SAS token
-
Optionally, you can test the file system connection.
-
-
Choose Save to complete the setup.
Add an Azure Synapse Connection
After setting up your data warehouse, you must add one or more connections to it before you can run queries:
-
Expand the Azure Synapse data warehouse, and select Create Connection.
-
Enter the Name of your Azure Synapse connection.
-
Enter the Host location of the Azure Synapse server.
-
For Port, enter the port number to route transmitted data. The default port number is 443.
-
Enter the Database.
-
If necessary, enter the JDBC flags that are needed for the connection in the Extra JDBC Flags field.
To use Active Directory authentication, enter
authentication=ActiveDirectoryPassword
. -
In the Authorization section, choose Password and enter the Username and Password.
-
Optionally, test the connection.
-
Choose Save to complete the setup.