Snowflake
Module containing Snowflake reader classes.
This module contains classes for reading data from Snowflake. The classes are used to create a Spark DataFrame from a Snowflake table or a query.
Classes:
Name | Description |
---|---|
SnowflakeReader |
Reader for Snowflake tables. |
Query |
Reader for Snowflake queries. |
DbTableQuery |
Reader for Snowflake queries that return a single row. |
Notes
The classes are defined in the koheesio.steps.integrations.snowflake module; this module simply inherits from the classes defined there.
See Also
- koheesio.spark.readers.Reader Base class for all Readers.
- koheesio.spark.snowflake Module containing Snowflake classes.
More detailed class descriptions can be found in the class docstrings.
koheesio.spark.readers.snowflake.DbTableQuery #
Read table from Snowflake using the dbtable
option instead of query
Example
koheesio.spark.readers.snowflake.Query #
koheesio.spark.readers.snowflake.SnowflakeReader #
Wrapper around JdbcReader for Snowflake.
Example
Notes
- Snowflake is supported natively in Databricks 4.2 and newer: https://docs.snowflake.com/en/user-guide/spark-connector-databricks
- Refer to Snowflake docs for the installation instructions for non-Databricks environments: https://docs.snowflake.com/en/user-guide/spark-connector-install
- Refer to Snowflake docs for connection options: https://docs.snowflake.com/en/user-guide/spark-connector-use#setting-configuration-options-for-the-connector