Unexpected database in connection details #966
SnowCLI version2.1.1 Python version3.12.2 PlatformNo response What happenedI want to test the SnowCLI connection without requiring DB/Schema being configured so that I can make sure my installation and authn is working. I was expecting the following or some friendly message. It would also be helpful if you printed the version of Snowflake I was connecting to (e.g. Instead I got the following: config.toml Console outputNo response How to reproduceNo response |
Replies: 12 comments
|
Hello, I checked it on my installation and this works correctly. Please take a look at my configuration and the output: Are you sure you don't have defined one of the following env variables:
You can check it by trying to print these variables in your shell: echo $SNOWFLAKE_DATABASE
echo $SNOWFLAKE_CONNECTIONS_TESTING_DATABASEI'm asking about it because it looks like you have somehow defined |
|
I do not have any snowflake env variables defined: |
|
Can you paste the output of And also please execute |
|
I'm afraid this is not the right way. Use |
|
@sfc-gh-smason Could you try to:
Upgrade instructions: pip install --upgrade snowflake-cli-labsbrew: |
Where is it picking up a ROLE and DB? |
|
Have you ever used |
|
I have not. |
|
Ok, I have an idea. I was able to reproduce the issue when I set wrong combination of "default namespace" and "default role" in settings of my Snowflake user. The connection test respects these default values fetched from Snowflake and it can be the cause of your issue. If you have access to check them, then please do it. |
|
To clarify: I'm talking about settings of Snowflake user in account admin view, not configuration in CLI. |
|
@sfc-gh-pjob, I checked the account settings/profile for my account in Snowsight, and the default role is |
Ok, I have an idea. I was able to reproduce the issue when I set wrong combination of "default namespace" and "default role" in settings of my Snowflake user. The connection test respects these default values fetched from Snowflake and it can be the cause of your issue. If you have access to check them, then please do it.