Snowflake-Labs / snow-cli-demo

Demonstrate how to use Snow CLI as the goto tool for DevOps with Snowflake.
Apache License 2.0
0 stars 1 forks source link

Cannot perform CREATE SECRET. This session does not have a current database. Call 'USE DATABASE', or use a qualified name. 2024-10-31 13:01:47 INFO [snowflake.connector.connection] closed #3

Open skhadrao opened 4 weeks ago

skhadrao commented 4 weeks ago

Hello

After running this

snow git setup "$GIT_REPO_NAME" --database="$GIT_REPO_DB" --schema="$GIT_REPO_SCHEMA" --debug

I have this error:

Cannot perform CREATE SECRET. This session does not have a current database. Call 'USE DATABASE', or use a qualified name. 2024-10-31 13:01:47 INFO [snowflake.connector.connection] closed

kameshsampath commented 4 weeks ago

did you happen to run the instructions as in https://github.com/Snowflake-Labs/snow-cli-demo?tab=readme-ov-file#snowflake-environment and make sure terminal you are running the instructions does have GIT_REPO_DB and GIT_REPO_SCHEMA environment variables while running the command.

skhadrao commented 4 weeks ago

Yes, I did the same instructions and have setted uo the variables db schema and warehouse

skhadrao commented 4 weeks ago

image