enso/test/Snowflake_Tests
Radosław Waśko 48c17845a7
Fixing Database tests and Snowflake Dialect - part 3 out of ... (#10458)
- Related to #9486
- Fixes types in literal tables that are used throughout the tests
- Tries to makes testing faster by disabling some edge cases, trying batching some queries, re-using the main connection and trying to re-use tables more
- Implements date/time type mapping and operations for Snowflake
- Updates type mapping to correctly reflect what Snowflake does
- Disables warnings for Integer->Decimal coercion as that's too annoying and implicitly understood in Snowflake
- Allows to select a Decimal column with `..By_Type ..Integer` (only in Snowflake backend) because the Decimal column there is its 'de-facto' Integer column replacement.
2024-07-10 13:21:30 +00:00
..
src Fixing Database tests and Snowflake Dialect - part 3 out of ... (#10458) 2024-07-10 13:21:30 +00:00
package.yaml Initial separation of Snowflake_Dialect from Postgres_Dialect (#10266) 2024-06-13 16:12:20 +00:00
README.md Initial separation of Snowflake_Dialect from Postgres_Dialect (#10266) 2024-06-13 16:12:20 +00:00

This is a set of tests for the Snowflake integration for Enso.

Testing Snowflake

To run the tests, you need to prepare credentials for a Snowflake instance that can be used to run them on.

Please set the following environment variables:

  • ENSO_SNOWFLAKE_ACCOUNT - the account name for the Snowflake instance,
  • ENSO_SNOWFLAKE_USER - the username to use for the tests,
  • ENSO_SNOWFLAKE_PASSWORD - the password for the user, for security reasons this can be a plain text value or an Enso Secret. If using a secret, please provide it as path - enso://orgid/path/foo.secret,
  • ENSO_SNOWFLAKE_DATABASE - the name of the database to use for the tests,
  • ENSO_SNOWFLAKE_SCHEMA - the name of the schema to use for the tests, (optional, defaults to PUBLIC),
  • ENSO_SNOWFLAKE_WAREHOUSE - the name of the warehouse to use for the tests (optional, defaults to blank value).