snowflakedb / snowflakedb/snowflake-connector-python
SNOW-1473500: Ability to interpolate variables within `config.toml`
Open
Nobody has claimed this yet.
enhancement
feature
status-triage_done
- Dominant language
- Python
- Stars
- 730
- Forks
- 574
- Avg merge
- 5h 45m
- Merged PRs (30d)
- 16
Description
What is the current behavior?
Description
When the snow cli creates the config.toml it does not interpolate the variables within the attribute values except for ~.
e.g.
default_connection_name="cheatsheets"
[connections]
[connections.cheatsheets]
account = "account-id"
user = "kameshs"
warehouse = "COMPUTE_WH"
schema = "PUBLIC"
authenticator = "SNOWFLAKE_JWT"
private_key_path="$KEYS_DIR/.keys/rsa_key.p8"
The $KEYS_DIR never gets interpolated while reading the key path.
It will be nice to add variable interpolation support for all attribute values with in the config.toml.
Context
No response
What is the desired behavior?
Expecting the parsing on config.toml expands the variables as needed.
How would this improve snowflake-connector-python?
It will improve the DevX and helps in automation where the automation tools can define their set of ENV variables to be used.
References and other background
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.