Starburst Synapse connector#
The Synapse connector allows querying an external Azure Synapse SQL database in Starburst Enterprise platform (SEP).
The connector requires a valid Starburst Enterprise license.
The connector can query a single database on a single instance of Synapse.
Create a catalog properties file that specifies the Synapse connector by setting
For example, to access a database as
mysynapsedb, create the file
etc/catalog/mysynapsedb.properties. Replace the connection properties as
appropriate for your setup:
connector.name=synapse connection-url=jdbc:sqlserver://<host>:<port>;database=<database> connection-user=root connection-password=secret
This basic configuration can be used for both dedicated and serverless pools. The connection URL parameter uses the SQL Server JDBC driver connection string syntax.
The connector includes a number of performance-enhancing features, detailed in the following sections.
The Synapse SQL connector supports table and column statistics to improve query processing performance based on the actual data in the data source.
Table statistics are enabled by default in Synapse SQL.
The connector can retrieve and use information stored in single-column statistics. Synapse can automatically create column statistics for certain columns. If column statistics were not created automatically for a certain column, you can create them by executing the following statement in Synapse SQL:
CREATE STATISTICS my_statistics_name ON table_schema.table_name (column_name);
Synapse SQL routinely updates the statistics as long as the
AUTO_CREATE_STATISTICS option is set to
ON in Synapse SQL. In some
cases, you may want to force statistics update (e.g. after defining new column
statistics or after changing data in the table). You can do that by executing
the following statement in Synapse SQL:
UPDATE STATISTICS table_schema.table_name(stat_name);
Dynamic filtering is enabled by default. It causes the connector to wait for dynamic filtering to complete before starting a JDBC query.
You can disable dynamic filtering by setting the property
dynamic-filtering.enabled in your catalog properties file to
The connector supports the following aggregate functions:
Caching table projections#
The connectors supports table scan redirection to improve performance and reduce load on the data source.
The connector includes a number of security-related features, detailed in the following sections.
The Synapse SQL connector supports user impersonation.
User impersonation can be enabled in the catalog file:
User impersonation in the Synapse connector is based on
EXECUTE AS USER.
The connector has the following limitations:
Table structure and table distribution options for CREATE TABLE are not supported.
TIMESTAMPis not supported; use
DATETIME2instead. Note that SEP translates
Synapse limits certain functionality and features when using serverless pools.
Refer to the Synapse SQL documentation for information about options, limitations and additional considerations.