Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 36 additions & 16 deletions docs/5-data-diffing/connect-to-warehouse.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,46 @@ If you use Recce Cloud, here are the warehouse connection settings. We currently
Others are coming in future releases

### Snowflake
We only support password-based authentication.
We support two authentication methods for Snowflake:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add additional line here.

image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a new-line

image


Field | Description | Examples
----|------|----
`account` | The Snowflake account to connect to | `xxxxxx.us-central1.gcp`
`database` | The default database to connect to | `MYDB`
`schema` | The default schema to connect to | `PUBLIC`
`warehouse` | The warehouse to use when running queries | `WH_LOAD`
`user` | The user to log in as | `MYUSER`
`password` | The password for the user | `MYPASS`
- **User & Password**: Traditional username and password authentication
- **Key Pair**: More secure authentication using RSA key pairs

#### Common Fields

| Field | Description | Examples |
| ----------- | ----------------------------------------- | ------------------------ |
| `account` | The Snowflake account to connect to | `xxxxxx.us-central1.gcp` |
| `database` | The default database to connect to | `MYDB` |
| `schema` | The default schema to connect to | `PUBLIC` |
| `warehouse` | The warehouse to use when running queries | `WH_LOAD` |

#### User & Password Authentication

| Field | Description | Examples |
| ---------- | ------------------------- | -------- |
| `user` | The user to log in as | `MYUSER` |
| `password` | The password for the user | `MYPASS` |

#### Key Pair Authentication

| Field | Description | Required |
| ------------------------ | ------------------------------------------------------------------------------- | -------- |
| `user` | The user to log in as | Yes |
| `private_key` | Your RSA private key in PEM format or Base64-encoded DER format | Yes |
| `private_key_passphrase` | Passphrase for the private key (only required if your private key is encrypted) | No |

For more information on setting up key pair authentication, refer to [Snowflake's key pair authentication documentation](https://docs.snowflake.com/en/user-guide/key-pair-auth).


### Databricks

We only support token-based authentication.

Field | Description | Examples
----|------|----
`host` | The hostname of your cluster | `YOURORG.databrickshost.com`
`http_path` | The HTTP path to your SQL Warehouse or all-purpose cluster | `/SQL/YOUR/HTTP/PATH`
`catalog` | The catalog used to connect to the warehouse. This is optional if you are using Unity Catalog | `MY_CATALOG`
`schema` | The default schema to connect to | `MY_SCHEMA`
`token` | The Personal Access Token (PAT) to connect to Databricks | `dapiXXXXXXXXXXXXXXXXXXXXXXX`
| Field | Description | Examples |
| ----------- | --------------------------------------------------------------------------------------------- | ----------------------------- |
| `host` | The hostname of your cluster | `YOURORG.databrickshost.com` |
| `http_path` | The HTTP path to your SQL Warehouse or all-purpose cluster | `/SQL/YOUR/HTTP/PATH` |
| `catalog` | The catalog used to connect to the warehouse. This is optional if you are using Unity Catalog | `MY_CATALOG` |
| `schema` | The default schema to connect to | `MY_SCHEMA` |
| `token` | The Personal Access Token (PAT) to connect to Databricks | `dapiXXXXXXXXXXXXXXXXXXXXXXX` |