-
Notifications
You must be signed in to change notification settings - Fork 97
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
graph object not available in dbt-power-user #1470
Labels
bug
Something isn't working
Comments
Hello, |
Bump :) |
I'm facing the same issue, is there a trick to avoid this ? |
Updated traceback with latest vscode-dbt-power-user version:
|
anandgupta42
added a commit
that referenced
this issue
Jan 27, 2025
- Replace graph.nodes with ref() for model reference - Use adapter.get_relation() and adapter.get_columns_in_relation() - Simplify source handling - Fix #1470
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
Be able to call macro which use graph.nodes.values() method.
Actual behavior
When I use a macro which use graph context and ask to compile to dbt-power-user I have this error :
When running
dbt compile
command on the same model, it works fine.Steps To Reproduce
My goal was to generate a column list based on documentation and not on adapter.get_relation.
Add these macros to jaffle_shop project :
Compile with dbt-power-user a new model with this code :
It raises an error.
Log output/Screenshots
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/dbt/.vscode-server/extensions/innoverio.vscode-dbt-power-user-0.47.2/dist/node_python_bridge.py", line 104, in
value = eval(_compile(data['code'], '', 'eval'), _locals)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1, in
File "/home/dbt/.vscode-server/extensions/innoverio.vscode-dbt-power-user-0.47.2/dist/dbt_core_integration.py", line 698, in compile_sql
raise Exception(str(e))
Exception: Compilation Error in sql_operation t_3d436d9853c44498bc47853630920867 (from remote system.sql)
'dict object' has no attribute 'nodes'
Operating System
Debian GNU/Linux
dbt version
1.8.6
dbt Adapter
bigquery
dbt Power User version
0.47.2
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: