dremio / dbt-dremio

dbt (data build tool) adapter for the Dremio
Apache License 2.0
44 stars 21 forks source link

[Bug]: Reflection bug: The name argument to ref() must be a string, got <class 'jinja2.runtime.Undefined'> #193

Closed Conq1 closed 10 months ago

Conq1 commented 1 year ago

Is there an existing issue for this?

Current Behavior

I get the above error. Used to work and have drilled down to: {% set anchor = ref(model.refs[0][0]) %} Not sure if they changed it in dbt-core to be an array of dictionaries, but changing it to {% set anchor = ref(model.refs[0]['name']) %} seems to work. image

Might be same root cause as https://github.com/dremio/dbt-dremio/issues/190

Expected Behavior

No response

Steps To Reproduce

No response

Environment

- OS: Ubuntu 22.04
- dbt-dremio: 1.5
- Dremio Software: N/A
- Dremio Cloud: N/A

Relevant log output

No response

donatobarone commented 1 year ago

I am curious as well. I have been trying to create reflections, but I couldn't find any documentation on how to do that. @Conq1 do you know where I could find it?

ravjotbrar commented 1 year ago

@donatobarone Here is the documentation: https://github.com/dremio/dbt-dremio/wiki/Using-Materializations-with-Dremio#reflections.

donatobarone commented 1 year ago

@ravjotbrar thanks a lot for the link, really appreciated. I get an issue that was already documented here 'dict object' has no attribute 'CompilationError' https://github.com/dremio/dbt-dremio/issues/190, not sure if anybody knows what is going on :)

donatobarone commented 1 year ago

This has been broken for a while, do we have any ETA for when this will be fixed?

ravjotbrar commented 1 year ago

@donatobarone the issue is on our radar, but unfortunately I don't have an eta for when it'll be fixed. I'll keep you posted here with any updates.