Snowpark Session¶
Session
|
Establishes a connection with a Snowflake database and provides methods for creating DataFrames and accessing objects for working with files in stages. |
SessionBuilder
|
Adds the app name to the |
|
Adds the specified connection parameter to the |
|
Adds the specified |
Creates a new Session. |
|
Gets the last created session or creates a new one if needed. |
Methods
|
Registers a remote file in stage or a local file as an import of a user-defined function (UDF). |
|
Adds third-party packages as dependencies of a user-defined function (UDF). |
|
Adds a requirement file (https://pip.pypa.io/en/stable/user_guide/#requirements-files) that contains a list of packages as dependencies of a user-defined function (UDF). |
|
Calls a stored procedure by name. |
Cancel all action methods that are running currently. |
|
Clears all files in a stage or local files from the imports of a user-defined function (UDF). |
|
Clears all third-party packages of a user-defined function (UDF). |
|
Close this session. |
|
|
Creates a new DataFrame containing the specified values from the local data. |
|
Creates an |
|
Creates a new DataFrame containing the specified values from the local data. |
|
Creates a new |
|
Creates a new DataFrame using the Generator table function. |
Returns the name of the current account for the Python connector session attached to this session. |
|
Returns the name of the current database for the Python connector session attached to this session. |
|
Returns the name of the primary role in use for the current session. |
|
Returns the name of the current schema for the Python connector session attached to this session. |
|
Returns the name of the user in the connection to Snowflake attached to this session. |
|
Returns the name of the warehouse in use for the current session. |
|
Returns the fully qualified name of the current schema for the session. |
|
Returns the fully qualified object name if current database/schema exists, otherwise returns the object name |
|
Returns a list of imports added for user defined functions (UDFs). |
|
Returns a |
|
|
Returns the name of the temporary stage created by the Snowpark library for uploading and storing temporary artifacts for this session. |
Create an instance of |
|
|
Creates a new DataFrame from a range of numbers. |
|
Removes a file in stage or local file from the imports of a user-defined function (UDF). |
|
Removes a third-party package from the dependency list of a user-defined function (UDF). |
Adds all third-party packages in your local environment as dependencies of a user-defined function (UDF). |
|
|
Returns a new DataFrame representing the results of a SQL query. |
|
Returns a Table that points the specified table. |
|
Creates a new DataFrame from the given snowflake SQL table function. |
|
Specifies the active/current database for the session. |
|
Specifies the active/current primary role for the session. |
|
Specifies the active/current schema for the session. |
|
Specifies the active/current secondary roles for the session. |
|
Specifies the active/current warehouse for the session. |
|
Writes a pandas DataFrame to a table in Snowflake and returns a Snowpark |
Attributes
Returns a builder you can use to set configuration properties and create a |
|
Get or set configuration parameters related to usage of custom Python packages in Snowflake. |
|
Returns a |
|
The query tag for this session. |
|
Returns a |
|
Returns a |
|
Returns a |
|
Set to |
|
Controls whether or not the Snowpark client sends usage telemetry to Snowflake. |
|
Returns a |
|
Returns a |
|
Returns a |
|
Returns an integer that represents the session ID of this session. |
|
Returns a |