snowflakedb / snowflakedb/snowflake-connector-python

SNOW-1473500: Ability to interpolate variables within `config.toml`

Open
#1,971 3 comments 0 reactions 1 assignee View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.