Snowflake
Snowflake is a cloud-hosted relational database for building data warehouse.
You can configure Snowflake using one of the following methods:
-
Create new connection– If you select theCreate new connectiontab, refer to the Create new connection - configuration details table to provide configuration details. -
Import from catalog– You can import connection details from an existing catalog in the data platform. If you select theImport from catalogtab, refer to the Import from catalog - configuration details table to provide configuration details. -
Import from project– You can import connection details from an existing project in the data platform. If you selectImport from project, refer to the Import from project - configuration details table to provide configuration details.
Create new connection - configuration details
| Field | Description |
|---|---|
| Target persistence |
Select the target persistence:
|
| Display name | Enter the data source name to be displayed on the screen. |
| 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 that is provided by your Snowflake administrator. |
| Warehouse name (optional) | Enter the Warehouse name. |
| Username | Enter the username. |
| Password | Enter the password. |
| Connection status | Click the Test connection link to test the database connection. If the database connection is successful, a success message appears. |
| Associate catalog | Select the checkbox to associate a catalog to the data source. This catalog is automatically associated with your data source and serves as your query interface with the data stored within. |
| Catalog name | Enter the name of the catalog. |
| Create | Click Create to create the data source. |
Import from catalog - configuration details
| Field | Description |
|---|---|
| Select catalog | Use the dropdown to select a catalog. |
| Select data source | Use the dropdown to select a data source from the selected catalog. |
| Target persistence |
Select the target persistence:
|
| Connection status | Click the Test connection link to test the database connection. If the database connection is successful, a success message appears. |
| Display name | Enter the database name to be displayed on the screen. |
| Associate catalog | Select the checkbox to associate a catalog to the data source. This catalog is automatically associated with your data source and serves as your query interface with the data stored within. |
| Catalog name | Enter the name of the catalog. |
| Create | Click Create to create the database. |
Import from project - configuration details
| Field | Description |
|---|---|
| Select project | Use the dropdown to select a project. |
| Select data source | Use the dropdown to select a data source from the selected project. |
| Target persistence |
Select the target persistence:
|
| Connection status | Click the Test connection link to test the database connection. If the database connection is successful, a success message appears. |
| Display name | Enter the database name to be displayed on the screen. |
| Associate catalog | Select the checkbox to associate a catalog to the data source. This catalog is automatically associated with your data source and serves as your query interface with the data stored within. |
| Catalog name | Enter the name of the catalog. |
| Create | Click Create to create the database. |
Limitations for SQL statements
CREATE TABLE ASis also supported forCREATE TABLEstatement.DROP TABLEstatement only when enabled in the catalog.- For data source-based catalogs the
CREATE SCHEMA,CREATE TABLE,DROP SCHEMA,DROP TABLE,DELETE,DROP VIEW,ALTER TABLE, andALTER SCHEMAstatements are not available in the Data Manager UI.
Limitations for data types
BLOBandCLOBdata types supportSELECTstatement but do not support operations such asequal,like, andin.- The data that is shown from the UI for
BLOBdata type 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.