-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] dynamic tables: support macros in "snowflake_warehouse" config value #1097
Comments
I've asked the engineering team to take a look. Here's some shots in the dark in the interim.
questions
|
WOO thank you i can take a look at some of these, much appreciated @dataders ! |
hi! ok little status update:
so the things I know are:
so from all of these things I suspect that this has to do with differences in how the extra config is used for snowflake dynamic tables which differs from how this is used for other materialization types, namely grabbing it from the top level of a standard config, which appears (after digging) to be part of the I might be way way off base here but it seems like these differences in how snowflake warehouse is initialized results in a difference in how they are parsed, such that one can use macros and the other cannot. I wondered if this is a partial parsing issue, so i tried running a So unless I drop out of dbt cloud and start mucking with dbt itself, I am a little stuck. If you have suggestions for how to develop on DBT itself, I'd love to do some sort of intro session to developing on dbt. |
@mike-weinberg taking a look into this, what dbt version are you using? |
@colin-rogers-dbt Running into this as well on v1.8.3 |
Is this your first time submitting a feature request?
Describe the feature
in most materialization types in snowflake, i can use a macro for dynamically switching what warehouse is in use based on if i am in dev or prod. it seems that when i try this in a DT materialization, I get an error.
eg:
works fine.
yields an error like the following sanitized error:
unfortunately i cannot figure out exactly what the problem is, but it is notable that this config comes from the
extra
part of thedbt_adapter
repo's contract inrelation.py
I assume this has something to do with the parser but tbh that's all black magic to me.
Describe alternatives you've considered
No response
Who will this benefit?
dynamic table users for whom their company requires separation of warehouses between production and dev and use a macro in order to dispatch based on what environment they're in.
Are you interested in contributing this feature?
happily, i just need direction =))))
Anything else?
No response
The text was updated successfully, but these errors were encountered: