Giter Site home page Giter Site logo

Comments (3)

jtcohen6 avatar jtcohen6 commented on August 16, 2024

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.

warner-s avatar warner-s commented on August 16, 2024

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.

warner-s avatar warner-s commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.