SnowflakeConnectionBase
Configure a Snowflake Snowpark session.
This abstract base class defines common Snowflake connection fields and
provides SnowflakeConnectionBase.get_session to create a Session.
Use one of the concrete authenticators (for example
UsernamePasswordAuth).
The session is cached on the instance; call
BaseConnection.clear_session_cache
to force a fresh session on the next access.
Do not instantiate this class directly.
Attributes
Section titled “Attributes”.warehouse
Section titled “.warehouse”SnowflakeConnectionBase.warehouse: strSnowflake warehouse name.
.rai_app_name
Section titled “.rai_app_name”SnowflakeConnectionBase.rai_app_name: (str, optional)RAI application name in Snowflake (default: “RELATIONALAI”).
.database
Section titled “.database”SnowflakeConnectionBase.database: (str, optional)Default database.
.schema_
Section titled “.schema_”SnowflakeConnectionBase.schema_: (str, optional)Default schema (set via schema=...).
Methods
Section titled “Methods”.get_session()
Section titled “.get_session()”SnowflakeConnectionBase.get_session() -> snowflake.snowpark.SessionReturn a Snowpark session for this connection.
The session is created on first access from this connection’s configuration
and cached on the instance. Call
BaseConnection.clear_session_cache
to force a fresh session on the next access.
Returns:
snowflake.snowpark.Session- The configured Snowpark session.
Inheritance Hierarchy
Section titled “Inheritance Hierarchy”Subclassed By
Section titled “Subclassed By”config > connections > snowflake ├── ExternalBrowserAuth ├── JWTAuth ├── OAuthAuth ├── ProgrammaticAccessTokenAuth ├── UsernamePasswordAuth └── UsernamePasswordMFAAuth