-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into chore-cli-and-cloud-pkg
- Loading branch information
Showing
194 changed files
with
13,963 additions
and
665 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
set -eo pipefail | ||
|
||
# Debug log for test containers | ||
export DEBUG=testcontainers | ||
|
||
export TEST_VERTICA_VERSION=12.0.4-0 | ||
|
||
echo "::group::Vertica ${TEST_VERTICA_VERSION}" | ||
docker pull vertica/vertica-ce:${TEST_VERTICA_VERSION} | ||
yarn lerna run --concurrency 1 --stream --no-prefix integration:vertica | ||
echo "::endgroup::" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nodeLinker: node-modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,6 +150,26 @@ CUBEJS_DB_EXPORT_GCS_CREDENTIALS=<BASE64_ENCODED_SERVICE_CREDENTIALS_JSON> | |
CUBEJS_DB_EXPORT_INTEGRATION=gcs_int | ||
``` | ||
|
||
#### Azure | ||
|
||
To use Azure Blob Storage as an export bucket, follow [the guide on | ||
using a Snowflake storage integration (Option 1)][snowflake-docs-azure]. | ||
Take note of the integration name (`azure_int` from the example link) | ||
as you'll need it to configure Cube. | ||
|
||
[Retrieve the storage account access key][azure-bs-docs-get-key] from your Azure | ||
account. | ||
|
||
Once the Snowflake integration is set up, configure Cube using the following: | ||
|
||
```dotenv | ||
CUBEJS_DB_EXPORT_BUCKET_TYPE=azure | ||
CUBEJS_DB_EXPORT_BUCKET=wasbs://[email protected] | ||
CUBEJS_DB_EXPORT_BUCKET_AZURE_KEY=<AZURE_STORAGE_ACCOUNT_ACCESS_KEY> | ||
CUBEJS_DB_EXPORT_INTEGRATION=azure_int | ||
``` | ||
|
||
|
||
## SSL | ||
|
||
Cube does not require any additional configuration to enable SSL as Snowflake | ||
|
@@ -176,3 +196,5 @@ connections are made over HTTPS. | |
[snowflake-docs-warehouse]: | ||
https://docs.snowflake.com/en/user-guide/warehouses.html | ||
[snowflake-format-2]: https://docs.snowflake.com/en/user-guide/admin-account-identifier#format-2-account-locator-in-a-region | ||
[snowflake-docs-azure]: https://docs.snowflake.com/en/user-guide/data-load-azure-config#option-1-configuring-a-snowflake-storage-integration | ||
[azure-bs-docs-get-key]: https://docs.microsoft.com/en-us/azure/storage/common/storage-account-keys-manage?toc=%2Fazure%2Fstorage%2Fblobs%2Ftoc.json&tabs=azure-portal#view-account-access-keys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Vertica | ||
|
||
## Prerequisites | ||
|
||
- The hostname for the [Vertica][vertica] database server | ||
- The username/password for the [Vertica][vertica] database server | ||
- The name of the database to use within the [Vertica][vertica] database server | ||
|
||
## Setup | ||
|
||
### Manual | ||
|
||
Add the following to a `.env` file in your Cube project: | ||
|
||
```dotenv | ||
CUBEJS_DB_TYPE=vertica | ||
CUBEJS_DB_HOST=my.vertica.host | ||
CUBEJS_DB_USER=vertica_user | ||
CUBEJS_DB_PASS=********** | ||
CUBEJS_DB_SCHEMA=my_vertica_schema | ||
``` | ||
|
||
## Environment Variables | ||
|
||
| Environment Variable | Description | Possible Values | Required | | ||
| -------------------------- | ----------------------------------------------------------------------------------- | --------------------------------------------- | :------: | | ||
| `CUBEJS_DB_HOST` | The host URL for a database | A valid database host URL | ✅ | | ||
| `CUBEJS_DB_PORT` | The port for the database connection | A valid port number | ❌ | | ||
| `CUBEJS_DB_USER` | The username used to connect to the database | A valid database username | ✅ | | ||
| `CUBEJS_DB_PASS` | The password used to connect to the database | A valid database password | ✅ | | ||
| `CUBEJS_DB_SCHEMA` | The schema within the database to connect to | A valid schema name within a Presto database | ✅ | | ||
| `CUBEJS_DB_SSL` | If `true`, enables SSL encryption for database connections from Cube | `true`, `false` | ❌ | | ||
| `CUBEJS_CONCURRENCY` | The number of concurrent connections each queue has to the database. Default is `2` | A valid number | ❌ | | ||
| `CUBEJS_DB_MAX_POOL` | The maximum number of concurrent database connections to pool. Default is `8` | A valid number | ❌ | | ||
|
||
|
||
## SSL | ||
|
||
To enable SSL-encrypted connections between Cube and Verica, set the | ||
`CUBEJS_DB_SSL` environment variable to `true`. For more information on how to | ||
configure custom certificates, please check out [Enable SSL Connections to the | ||
Database][ref-recipe-enable-ssl]. | ||
|
||
[vertica]: https://www.vertica.com/documentation/vertica/all/ | ||
[ref-recipe-enable-ssl]:/guides/recipes/data-sources/using-ssl-connections-to-data-source | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.