Released on August 15th, 2022.
Note, with this release, the `database`, `warehouse` and `schema` fields from `SnowflakeCredentials` have been migrated to `SnowflakeConnector`:
from prefect_snowflake.credentials import SnowflakeCredentials
from prefect_snowflake.database import SnowflakeConnector
...
snowflake_credentials = SnowflakeCredentials(
account="account",
user="user",
password="password",
)
snowflake_connector = SnowflakeConnector(
database="database",
warehouse="warehouse",
schema="schema",
credentials=snowflake_credentials
)
Tasks now accept `SnowflakeConnector` instead of `SnowflakeCredentials`:
snowflake_query(..., snowflake_connector)
Added
- `SnowflakeConnector` block - [24](https://github.com/PrefectHQ/prefect-snowflake/pull/24)
- `okta_endpoint` field to `SnowflakeCredentials` - [25](https://github.com/PrefectHQ/prefect-snowflake/pull/25)
Changed
- Moved the keywords, `database`, `warehouse`, and `schema` from `credentials.SnowflakeCredentials` into `database.SnowflakeConnector` - [24](https://github.com/PrefectHQ/prefect-snowflake/pull/24)
- Moved the method `get_connection` from `credentials.SnowflakeCredentials` into `database.SnowflakeConnector` - [24](https://github.com/PrefectHQ/prefect-snowflake/pull/24)
- `authenticator` field in `SnowflakeCredentials` to `Literal` type - [25](https://github.com/PrefectHQ/prefect-snowflake/pull/25)
Removed
- Removed the keywords, `database` and `warehouse`, from `snowflake_query` and `snowflake_multiquery` - [24](https://github.com/PrefectHQ/prefect-snowflake/pull/24)
Security
- Fixed revealing the input password nested under `connect_params` when logging `SnowflakeCredentials` - [24](https://github.com/PrefectHQ/prefect-snowflake/pull/24)