Comments (3)
This is really weird!
000606 (57P03): No active warehouse selected in the current session. Select an active warehouse with the 'use warehouse' command.
is the error message I'd expect you to be seeing if you were trying to connect to a warehouse that doesn't exist, or to one that you don't have permission to access.
There's a subtle difference between the warehouse
configured in profiles.yml
(used by default for all connecting/querying), and the snowflake_warehouse
config defined under models:
in dbt_project.yml
(used only for model materialization queries, to override the default, by calling use warehouse
before and after).
I've been able to partially reproduce the error you're seeing, by configuring a nonexistent warehouse
in my connection profile, and a real snowflake_warehouse
for my models. dbt compile
runs fine; dbt run
runs mostly run (though I still encounter some errors); dbt test
raises all sorts of errors, because tests don't inherit/use the snowflake_warehouse
config today (#23); and same for dbt docs generate
, which uses the profile (default) warehouse for its catalog queries.
Clearly, however, it sounds like you can access DEVELOPER_WH
with your user's permissions (given the successful dbt run
), and it's not like you're configuring different warehouses in your connection profile vs. model config.
Is there any chance that your permission to the DEVELOPER_WH
is being granted/revoked by an automated process running elsewhere?
In the meantime, I'm going to transfer this issue to the dbt-snowflake repo. If we can get to the bottom of what's happening here, I imagine that's where we'll want to make the relevant code changes.
from dbt-snowflake.
Yes. Very weird indeed! Thanks for the rapid triage!
There are no automated processes granting or revoking access to the warehouse or roles. At one point I tested with a user which had simultaneous successful operations from a non-dbt agent.
I only added the snowflake_warehouse
property as an attempt to force a warehouse for tests/docs after exhausting other options. I don't have a need or intention to include it if it's not required.
Thanks again and let me know if I can provide any additional info that would be helpful.
from dbt-snowflake.
The simple explanation prevails again: the warehouse name was not correct in the profile used. The fact that dbt run
succeeded (presumably by using the default warehouse assigned to the user) clouded good judgment--hijacking fundamental troubleshooting discipline. Please accept my profuse apologies for the noise.
from dbt-snowflake.
Related Issues (20)
- [Bug] Can't utilize Snowflake's double-dollar-sign string notation in dbt python models
- [Feature] `use_anonymous_sproc=False` Should not drop stored procedure HOT 1
- [Bug] dbt seed --full-refresh sql compilation error HOT 5
- [Bug] Add test for 9682 in core against 1.8 and fix replace MV macros HOT 2
- [Bug] Add test for 9682 in core against 1.7 and fix replace MV macros HOT 2
- [Feature] Implement tags setting using base adapter method
- [Feature] Allow version pinning for snowflake-snowpark-python version when defined in dbt.config.packages HOT 1
- [Feature] Add refresh_mode to macro snowflake__get_create_dynamic_table_as_sql HOT 1
- [Feature] Implement `EXTERNAL_ACCESS_INTEGRATIONS` and secrets in `submit_python_job` HOT 5
- [Feature] Implement EXTERNAL_ACCESS_INTEGRATION and secrets in submit_python_job HOT 1
- [Regression] Snowflake is now populating a value for the relation type on dynamic tables, which is not properly reflected in the metadata queries HOT 2
- [Bug]Test ddtrace dependency range
- [Bug] Remove `private_key_path` from `SnowflakeCredentials._connection_keys`
- [Feature] Lazy load `agate`
- [Bug]: can only concatenate list (not 'Table') to list when creating model HOT 1
- Support Batch Metadata Freshness
- Installing 1.7.3 on Airflow 2.9 HOT 1
- [Bug] DBT Dynamic Table Builds Failing when a model.yml file is added; succeeds otherwise. HOT 2
- [Feature] Support additional security related config arguments for materializations HOT 1
- [Feature] support configuring change_tracking for table materializations
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbt-snowflake.