-
Notifications
You must be signed in to change notification settings - Fork 7
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
[CT-2660] [CT-2648] [Regression] Since 1.5 --vars
is not rendered in the model config header
#145
Comments
--vars
is not rendered in the model config header--vars
is not rendered in the model config header
@b-per I'm not able to reproduce this - -- models/var_mat.sql
{% set var_mater = var('materialized','view') %}
{{
config(
materialized=var_mater
)
}}
select 1 as id
-- materialized: {{ model.config.materialized }}
-- config: {{ var_mater }}
Compiled code: select 1 as id
-- materialized: table
-- config: table |
This is very odd. The exact same model and command doesn't return the expected results on dbt Cloud on 1.5.1. It was actually raised to me by a user who also sees the same behaviour as I see. I will try to investigate a bit more |
I just ran a job with the exact same config and it created it as a |
Could be... Update: I was able to reproduce this on the IDE using the legacy backend ( If this is "just fixed" when we move to the newer backend, that would inform the priority of solving this IMO. Let's make sure that's the case once it's available for alpha/beta testing. I'm going to move this to the |
--vars
is not rendered in the model config header--vars
is not rendered in the model config header
@jtcohen6 We have a customer in my cohort, that is experiencing this behaviour, but has it been verified that 1.6 dbt-server will likely solve this? Should I ask them to test the 1.6 (patch prerelease) that is currently available to them, or should they wait for the 1.6 stable? |
Fwiw - current iteration using 1.6 (so not dbt-server) shows this is not fixed yet. |
Thanks @will-sargent-dbtlabs @jeremyyeo! This is being tracked here: https://dbtlabs.atlassian.net/browse/XP-2506 Note that there will be a performance penalty if you are overriding Thinking through ways we can make that better over here: |
Is this a regression in a recent version of dbt-core?
Current Behavior
In 1.5, running
dbt run -s var_mat --vars "materialized: table"
on the following model creates it as a view.This is confirmed with the logs showing
Expected/Previous Behavior
Until 1.4 the model is correctly created as a table. I would expect to still be the case with 1.5 onwards.
Steps To Reproduce
var
--vars
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: