Open vincentclaes opened 6 months ago
run_query macro produces the same error on every query I try
run_query
Database Error in model testcard_id_audit (models/audit/foo.sql) syntax error at or near ")" LINE 13: ); ^
Even with this trivial example :
{% if execute %} {% set results = run_query('select 1 as id') %} {% do results.print_table() %} {% endif %}
Add this to a model
and perform dbt run
dbt run
I would expect no error and a table that is returned I can print for example.
Database Error in model testcard_id_audit (models/audit/foo.sql) syntax error at or near ")" LINE 13: );
The contents of your packages.yml file:
packages.yml
Which database are you using dbt with?
The output of dbt --version:
dbt --version
dbt --version 1 ↵ ✖ ✹ ✚ ✭SF-1280-remove-unused-models Core: - installed: 1.7.10 - latest: 1.7.10 - Up to date! Plugins: - postgres: 1.7.10 - Up to date!
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days.
Describe the bug
run_query
macro produces the same error on every query I tryEven with this trivial example :
Steps to reproduce
Add this to a model
and perform
dbt run
Expected results
I would expect no error and a table that is returned I can print for example.
Actual results
Screenshots and log output
System information
The contents of your
packages.yml
file:Which database are you using dbt with?
The output of
dbt --version
:Additional context
Are you interested in contributing the fix?