Snowflake
Snowflake is a cloud-hosted relational database for building data warehouse. You can add a Snowflake data source as an infrastructure component.
watsonx.data on IBM Software Hub
watsonx.data Developer edition
Snowflake
You can add Snowflake as a data source infrastructure component in the following ways:
- Configure a new connection. See Create new connection - configuration details.
- Import an existing connection from a project or catalog/database that is on the same cluster. See Importing an existing connection.
Create new connection - configuration details
| Field | Description |
|---|---|
| Target persistence |
Select the target persistence:
|
| Display name | The name of the new infrastructure component. |
| Database name | Enter the name of your database. |
| Account name | Enter your Snowflake Account name. This may include region information (for example, account_name.region_id). If you do not have region information, use the account name provided by your Snowflake administrator. |
| Authentication type | Select the authentication method:
|
| Warehouse name (optional) | Enter your Warehouse name. Note: You must provide a warehouse name when using
Private key authentication type.
|
| Username | Enter the Username. |
| Password | Enter the password. |
| Passphrase | This field is displayed when Private key authentication type is
selected. Enter the passphrase for the private key if it is encrypted. Note: Passphrase is optional
for unencrypted private keys.
|
| Connection status | Click the Test connection link to test the database connection. If the database connection is successful, a success message appears. |
Console UI Associate catalog |
Console UI Select the checkbox to add a catalog for your storage. This catalog is associated with your storage and serves as your query interface with the data stored within. |
| Catalog name / Name |
|
| Create |
|
Importing an existing connection
| Field | Description |
|---|---|
| Select the location of the existing connection |
Select from where to import the connection:
Important: Connections can only be imported from catalogs, databases, or projects that
are on the same cluster. Catalogs, databases, or projects created in a different cluster within the
data platform cannot be imported.
|
| Select data source | Use the dropdown to select a data source from the selected catalog, database, or project. |
| Target persistence |
Select the target persistence:
|
| Display name | The name of the new infrastructure component. |
Console UI Associate catalog |
Console UI Select the checkbox to add a catalog for your storage. This catalog is associated with your storage and serves as your query interface with the data stored within. |
| Catalog name / Name |
|
| Create | Click Create to create the database. |
- Limitations for SQL statements
-
CREATE TABLE ASis also supported forCREATE TABLEstatement.DROP TABLEstatement is supported only when enabled in the catalog.- For the database-based catalogs,
CREATE SCHEMA,CREATE TABLE,DROP SCHEMA,DROP TABLE,DELETE,DROP VIEW,ALTER TABLE, andALTER SCHEMAstatements are not supported.
- Limitations for data types
-
BLOBandCLOBdata types supportSELECTstatement but do not support operations such asequal,like, andin.- The data that is shown for the
BLOBdata type from the UI is in Base64 format, while the result from presto-cli is in hexadecimal format. BINARYdata type supports onlySELECTstatement.- When the fields of data type
REALhave 6 digits or more in the decimal part with the digits being predominately zero, the values when queried are rounded off. It is observed that the rounding off occurs differently based on the precision of the values. For example, a decimal number 1.654 when rounded to 3-digits after the decimal point are the same. Another example is 10.890009 and 10.89000. It is noticed that 10.89000 is rounded to 10.89, whereas 10.89009 is not rounded off. This is an inherent issue because of the representational limitations of binary floating point formats. This might have a significant impact when querying involves sorting.