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

'Disabled' object has no attribute 'node_info' #1324

Open
1 task
nstringham opened this issue Jul 24, 2024 · 1 comment
Open
1 task

'Disabled' object has no attribute 'node_info' #1324

nstringham opened this issue Jul 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@nstringham
Copy link

Expected behavior

When I run a file it should either give me the data or an nice readable error message.

Actual behavior

Sometimes I get this error: 'Disabled' object has no attribute 'node_info'

Steps To Reproduce

I'm honestly not exactly sure how to reproduce this but here is the query I was running to get the error above

select c.id
from staging.contact as c

This query works fine in dbeaver BTW.

Log output/Screenshots

{
  "code": -1,
  "message": "'Disabled' object has no attribute 'node_info'",
  "data": "\"Error: Traceback (most recent call last):\\n  File \\\"/home/ubuntu/.vscode-server/extensions/innoverio.vscode-dbt-power-user-0.42.3/dist/dbt_core_integration.py\\\", line 716, in _compile_sql\\n    server_node = self.get_server_node(raw_sql, temp_node_id, original_node)\\n  File \\\"/home/ubuntu/.vscode-server/extensions/innoverio.vscode-dbt-power-user-0.42.3/dist/dbt_core_integration.py\\\", line 623, in get_server_node\\n    if original_node is not None and isinstance(original_node.node_info, dict) and \\\"materialized\\\" in original_node.node_info.keys() and original_node.node_info[\\\"materialized\\\"] == \\\"incremental\\\":\\nAttributeError: 'Disabled' object has no attribute 'node_info'\\n\\nDuring handling of the above exception, another exception occurred:\\n\\nTraceback (most recent call last):\\n  File \\\"/home/ubuntu/.vscode-server/extensions/innoverio.vscode-dbt-power-user-0.42.3/dist/dbt_core_integration.py\\\", line 699, in compile_sql\\n    return self._compile_sql(raw_sql, original_node)\\n  File \\\"/home/ubuntu/.vscode-server/extensions/innoverio.vscode-dbt-power-user-0.42.3/dist/dbt_core_integration.py\\\", line 721, in _compile_sql\\n    raise Exception(str(e))\\nException: 'Disabled' object has no attribute 'node_info'\\n\\nDuring handling of the above exception, another exception occurred:\\n\\nTraceback (most recent call last):\\n  File \\\"/home/ubuntu/.vscode-server/extensions/innoverio.vscode-dbt-power-user-0.42.3/dist/node_python_bridge.py\\\", line 104, in <module>\\n    value = eval(_compile(data['code'], '<input>', 'eval'), _locals)\\n  File \\\"<input>\\\", line 1, in <module>\\n  File \\\"/home/ubuntu/.vscode-server/extensions/innoverio.vscode-dbt-power-user-0.42.3/dist/dbt_core_integration.py\\\", line 701, in compile_sql\\n    raise Exception(str(e))\\nException: 'Disabled' object has no attribute 'node_info'\\n\\n\\tat ChildProcess.onMessage (/home/ubuntu/.vscode-server/extensions/innoverio.vscode-dbt-power-user-0.42.3/dist/extension.js:14505:184)\\n\\tat Object.onceWrapper (node:events:633:26)\\n\\tat ChildProcess.emit (node:events:518:28)\\n\\tat emit (node:internal/child_process:951:14)\\n\\tat process.processTicksAndRejections (node:internal/process/task_queues:83:21)\""
}

Operating System

ubuntu

dbt version

1.8.3

dbt Adapter

dbt-postgres

dbt Power User version

0.42.3

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@nstringham nstringham added the bug Something isn't working label Jul 24, 2024
@ThaisBarrosAlvim
Copy link

I had the quite the same error, for me is: 'ParsedModelNode' object has no attribute 'node_info' occurs when I try to preview something..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants