snowflakedb / snowpark-java-scala

Snowflake Snowpark Java & Scala API
Apache License 2.0
18 stars 20 forks source link

SNOW-781552: Add getter and setter methods to Session class #1

Open sfc-gh-jfreeberg opened 1 year ago

sfc-gh-jfreeberg commented 1 year ago

Add the following methods to the Session class:

These methods can be used to change the db/role/warehouse at different stages of a job.

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

sbouhaddi commented 1 year ago

Can i have a look at this one too?

sbouhaddi commented 1 year ago

You can assign this one also to me. Thank you

sbouhaddi commented 9 months ago

Hello , Do you mean something like this ?

Optional getCurrentAccount() { var account = session.conn().getParameterValue("account", false, Option.empty()); return Optional.of(account); }