When trying to read from a table with Snowflake Python connector I am getting the following error:
*** snowflake.connector.errors.ProgrammingError: 000606 (57P03): No active warehouse selected in the current session. Select an active warehouse with the 'use warehouse' command.
Searching the web for solutions I saw that the main recommendation is to apply USE WAREHOUSE <warehouse name>
However, when I apply this command I get the following error:
*** snowflake.connector.errors.ProgrammingError: 002043 (02000): SQL compilation error: Object does not exist, or operation cannot be performed.
I also granted "USAGE" privileges to the relevant user, but the errors still occurred.
There are no errors when I apply the commands USE DATABASE and USE SCHEMA on the other hand.
Also, I am able to read from the table from Snowflake web UI with another user.
Any idea what might be wrong?
