Skip to content

Fix chat_snowflake - #694

Merged
atheriel merged 1 commit into
tidyverse:mainfrom
robert-norberg:fix-chat_snowflake
Aug 20, 2025
Merged

atheriel merged 1 commit into
tidyverse:mainfrom
robert-norberg:fix-chat_snowflake

Conversation

@robert-norberg

Copy link
Copy Markdown
Contributor

Resolves #692.

I also updated default_snowflake_credentials so that the account identifier is pulled out of account when account is a PrivateLink account (e.g. mycompany.us-east-1.privatelink). This allowed me to run the tests for provider-snowflake.

Once I was able to run the tests, four tests in test-provider-snowflake.R were failing. My deletion of line 287 resolved this and all of the tests are passing again.

I didn't look too closely at provider-snowflake-cortex.R, but I ran those tests as well. Only the last one failed, and that fails with or without my deletion of line 287 in provider-snowflake.R.

@hadley
hadley requested a review from atheriel August 1, 2025 12:46
@atheriel

atheriel commented Aug 1, 2025

Copy link
Copy Markdown
Collaborator

I'm very happy to see the Privatelink support! I'm a bit apprehensive about the other change; Snowflake's APIs were heavily in flux when I was last working on this (in June), and it's possible they've made a change that causes this previously working code to break.

I will try to verify against our Snowflake dev environments shortly.

@robert-norberg

Copy link
Copy Markdown
Contributor Author

I'm very happy to see the Privatelink support! I'm a bit apprehensive about the other change; Snowflake's APIs were heavily in flux when I was last working on this (in June), and it's possible they've made a change that causes this previously working code to break.

I will try to verify against our Snowflake dev environments shortly.

Yes, Snowflake's APIs do seem to be changing a lot. Feel free to @ me if you want me to run the tests in our Snowflake environment or do any kind of testing related to Snowflake functionality. I'm happy to help.

@atheriel
atheriel force-pushed the fix-chat_snowflake branch 2 times, most recently from a268486 to 55a9464 Compare August 20, 2025 18:37
@atheriel

Copy link
Copy Markdown
Collaborator

Confirmed that this change fixes our environment, too. Thank you!

I've squashed & rebased the commits and added NEWS items; hopefully CI will pass now.

This commit updates default_snowflake_credentials() to handle Privatelink
account identifiers.

It also fixes tidyverse#692.

Signed-off-by: Aaron Jacobs <aaron.jacobs@posit.co>
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.

Snowflake chat results in 400 error

2 participants