You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding {{ config(materialized = 'reflection', reflection_type = 'raw') }} to the top of a sql model to try and configure a raw reflection on a VDS the following error is thrown:
20:04:56 Compilation Error in model my_second_dbt_model (models/example/my_second_dbt_model.sql)
20:04:56 'dict object' has no attribute 'CompilationError'
I'm able to reproduce this with our internal dbt repo and with the example models from dbt init.
Expected Behavior
Reflection gets created on VDS.
Steps To Reproduce
Create new dbt project with dbt init
dbt run to apply example models
Add {{ config(materialized = 'reflection', reflection_type = 'raw') }} to the top of models/example/my_second_dbt_model.sql.
dbt run will throw error:
20:18:18 Compilation Error in model my_second_dbt_model (models/example/my_second_dbt_model.sql)
20:18:18 'dict object' has no attribute 'CompilationError'
Okay I got a bit further here, in order to create the reflection theoretically, but I might be wrong :D you would have to create a separate model which the only macro is calling is the one you have, but you will have to specify the dependency from the original view model using the --depends_on comment, as explained in the wiki https://github.com/dremio/dbt-dremio/wiki/Using-Materializations-with-Dremio#configuring-reflections. Maybe they have changed the workflow to create reflections. Still that failed, because either I am doing something wrong or the macro has a bug. Will create a ticket for it.
Setting vars seems to solve the issue in my case.
Can we maybe add a more descriptive error message and better documentation in the wiki around the importance of setting this flag in the project.yml?
Is there an existing issue for this?
Current Behavior
When adding
{{ config(materialized = 'reflection', reflection_type = 'raw') }}
to the top of a sql model to try and configure a raw reflection on a VDS the following error is thrown:I'm able to reproduce this with our internal dbt repo and with the example models from
dbt init
.Expected Behavior
Reflection gets created on VDS.
Steps To Reproduce
dbt init
dbt run
to apply example models{{ config(materialized = 'reflection', reflection_type = 'raw') }}
to the top ofmodels/example/my_second_dbt_model.sql
.dbt run
will throw error:Environment
Relevant log output
The text was updated successfully, but these errors were encountered: