[CT-2680] [Bug] Allow referencing private models within dbt show
"inline" queries
#7837
Labels
Milestone
dbt show
"inline" queries
#7837
Currently, dbt will raise a
DbtReferenceError
when trying to preview an--inline
query thatref
s a private model, because the inline query is not part of the same modelgroup
as the private model.In my opinion:
group
, you'll start seeing the reference error — which makes sense!Reproduction case
$ dbt show --inline "select * from {{ ref('my_model') }}" 22:51:45 Running with dbt=1.6.0-b2 22:51:45 Encountered an error: Parsing Error Node sql operation.my_dbt_project.inline_query attempted to reference node model.my_dbt_project.my_model, which is not allowed because the referenced node is private to the my_cool_group group.
(While here: let's change the string rendering of
sql operation
to something without spaces -sqloperation
)Looms
Users running into this error in the dbt Cloud IDE:
The text was updated successfully, but these errors were encountered: