Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for connecting to snowpark container services #103

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

punitchauhan771
Copy link

@punitchauhan771 punitchauhan771 commented Sep 9, 2024

added logic to connect to snowflake database inside snowpark container service,
the logic contains a new flag:

  • is_spcs_connection : boolean -> which the user can provide whether they want to connect to their snowflake db inside spcs or not

fixes #100

@timgraham timgraham changed the title Django51 Add support for connecting to snowpark container services Dec 23, 2024
added a new option flag indicating whether this needs an spcs ingress connection or not
@timgraham
Copy link
Collaborator

Is there a way we could implement this without adding is_spcs_connection to OPTIONS? Currently everything in OPTIONS is passed to snowflake.connect() which results in a warning:

/home/tim/.virtualenvs/django312/lib/python3.12/site-packages/snowflake/connector/__init__.py:55: UserWarning: 'is_spcs_connection' is an unknown connection parameter

For example, can we assume if HOST is provided that it's a spcs connection? Whatever the solution, it should be explained in the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for connecting to snowpark container services
2 participants