Skip to content
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]: Reflection bug: The name argument to ref() must be a string, got <class 'jinja2.runtime.Undefined'> #193

Closed
1 task done
Conq1 opened this issue Jun 30, 2023 · 5 comments · Fixed by #213
Closed
1 task done
Labels
bug Something isn't working

Comments

@Conq1
Copy link

Conq1 commented Jun 30, 2023

Is there an existing issue for this?

  • I have searched the existing issues

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 #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

@Conq1 Conq1 added the bug Something isn't working label Jun 30, 2023
@donatobarone
Copy link

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
Copy link
Contributor

@donatobarone
Copy link

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

@donatobarone
Copy link

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

@ravjotbrar
Copy link
Contributor

@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.

mxmarg added a commit to mxmarg/dbt-dremio that referenced this issue Jan 19, 2024
ravjotbrar pushed a commit that referenced this issue Jan 25, 2024
See issue description in #193
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging a pull request may close this issue.

3 participants