Basic connection parameters
The following sections describe the basic connection parameters for the JDBC 4.x driver.
Region
The AWS Region where queries will be run. For a list of regions, see Amazon Athena endpoints and quotas.
Set Region explicitly when using AzureAD, Okta, Ping, ADFS, BrowserAzureAD, or BrowserSaml. DataZoneIdc also requires an explicit query Region when connecting through an environment; its project connection does not require this parameter.
| Parameter name | Alias | Parameter type | Default value |
|---|---|---|---|
| Region | AwsRegion (deprecated) | Set explicitly for authentication providers that require it; otherwise the SDK client resolves the Region | none |
Catalog
The catalog that contains the databases and the tables that will be accessed with the driver. For information about catalogs, see DataCatalog.
| Parameter name | Alias | Parameter type | Default value |
|---|---|---|---|
| Catalog | none | Optional | AwsDataCatalog |
Database
The database name that the driver includes in the query execution context. For information about this context, see QueryExecutionContext.
| Parameter name | Alias | Parameter type | Default value |
|---|---|---|---|
| Database | Schema | Optional | default |
Workgroup
The workgroup in which queries will run. For information about workgroups, see WorkGroup.
| Parameter name | Alias | Parameter type | Default value |
|---|---|---|---|
| WorkGroup | none | Optional | primary |
Output location
The location in Amazon S3 where query results will be stored. For information about output location, see ResultConfiguration.
| Parameter name | Alias | Parameter type | Default value |
|---|---|---|---|
| OutputLocation | S3OutputLocation (deprecated) | Optional for Athena-managed query results; for S3 results, configure the output location in the connection or workgroup | none |
EngineVersion
The optional EngineVersion parameter accepts DuckDB and Athena engine version 3. It selects the corresponding dialect and names the engine in query submissions; result storage still comes from the workgroup.
Leave this parameter unset when first connecting to a workgroup configured for the engine you want to use.