Skip to content

Commit 93d406f

Browse files
committed
chore: use CUBEJS_DB_NAME for Athena default database
1 parent c35c82d commit 93d406f

File tree

3 files changed

+1
-17
lines changed

3 files changed

+1
-17
lines changed

docs/content/Configuration/Databases/AWS-Athena.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,10 @@ CUBEJS_AWS_ATHENA_CATALOG=AwsDataCatalog
3232
| ------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ | :------: | :----------------------------------------------------------------------: |
3333
| `CUBEJS_AWS_KEY` | The AWS Access Key ID to use for database connections | A valid AWS Access Key ID |||
3434
| `CUBEJS_AWS_SECRET` | The AWS Secret Access Key to use for database connections | A valid AWS Secret Access Key |||
35-
| `CUBEJS_AWS_SESSION_TOKEN` | The AWS Session token if using MFA | A valid AWS Session token |||
3635
| `CUBEJS_AWS_REGION` | The AWS region of the Cube deployment | [A valid AWS region][aws-docs-regions] |||
3736
| `CUBEJS_AWS_S3_OUTPUT_LOCATION` | The S3 path to store query results made by the Cube deployment | A valid S3 path |||
3837
| `CUBEJS_AWS_ATHENA_WORKGROUP` | The name of the workgroup in which the query is being started | [A valid Athena Workgroup][aws-athena-workgroup] |||
3938
| `CUBEJS_AWS_ATHENA_CATALOG` | The name of the catalog to use by default | [A valid Athena Catalog name][awsdatacatalog] |||
40-
| `CUBEJS_AWS_ATHENA_DATABASE` | The name of the database to use by default | A valid Athena Database name |||
4139
| `CUBEJS_DB_SCHEMA` | The name of the schema to use as `information_schema` filter. Reduces count of tables loaded during schema generation. | A valid schema name |||
4240
| `CUBEJS_CONCURRENCY` | The number of concurrent connections each queue has to the database. Default is `5` | A valid number |||
4341

packages/cubejs-athena-driver/src/AthenaDriver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export class AthenaDriver extends BaseDriver implements DriverInterface {
135135
getEnv('athenaAwsCatalog', { dataSource }),
136136
database:
137137
config.database ||
138-
getEnv('athenaAwsDatabase', { dataSource }),
138+
getEnv('dbName', { dataSource }),
139139
exportBucket:
140140
config.exportBucket ||
141141
getEnv('dbExportBucket', { dataSource }),

packages/cubejs-backend-shared/src/env.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -914,20 +914,6 @@ const variables: Record<string, (...args: any) => any> = {
914914
]
915915
),
916916

917-
/**
918-
* Athena AWS Database.
919-
*/
920-
athenaAwsDatabase: ({
921-
dataSource
922-
}: {
923-
dataSource: string,
924-
}) => (
925-
// TODO (buntarb): Deprecate and replace?
926-
process.env[
927-
keyByDataSource('CUBEJS_AWS_ATHENA_DATABASE', dataSource)
928-
]
929-
),
930-
931917
/** ****************************************************************
932918
* BigQuery Driver *
933919
***************************************************************** */

0 commit comments

Comments
 (0)