You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
github-actionsbot
changed the title
Add getter and setter methods to Session class
SNOW-781552: Add getter and setter methods to Session class
Apr 6, 2023
Add the following methods to the Session class:
.getCurrentAccount() -> Optional<String>
.getCurrentWarehouse() -> Optional<String>
.getCurrentRole() -> Optional<String>
These methods can be used to change the db/role/warehouse at different stages of a job.
.setDatabase(database: string) -> void
.setRole(role: string) -> void
.setSchema(schema: string) -> void
.setWarehouse(warehouse: string) -> void
Each should return the string of the corresponding key. For reference, here is the implementation in the Python SDK: https://github.com/snowflakedb/snowpark-python/blob/main/src/snowflake/snowpark/session.py
The text was updated successfully, but these errors were encountered: