We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The compile_sql and run_sql methods of dbt rpc currently include Jinja comments {# #} in their compiled SQL.
compile_sql
run_sql
dbt rpc
{# #}
Run an RPC server per docs
Send a request (method compile_sql or run_sql) where the SQL contains a Jinja comment
{ "jsonrpc": "2.0", "method": "compile_sql", "id": "2db9a2fe-9a39-41ef-828c-25e04dd6b07d", "params": { "timeout": 60, "sql": "c2VsZWN0IHsjIDEgKyAxICN9IGFzIGlkCg==", "name": "my_first_query" } }
... "raw_sql": "select {# 1 + 1 #} as id\n", "compiled_sql": "select {# 1 + 1 #} as id\n", ...
"raw_sql": "select {# 1 + 1 #} as id\n", "compiled_sql": "select as id\n",
The output of dbt --version:
dbt --version
$ dbt --version installed version: 0.17.1-rc4 latest version: 0.17.0 Your version of dbt is ahead of the latest release! Plugins: - bigquery: 0.17.1rc4 - snowflake: 0.17.1rc4 - redshift: 0.17.1rc4 - postgres: 0.17.1rc4
The text was updated successfully, but these errors were encountered:
I missed this until just now, but this is in fact the same as #2707 - closing as it's fixed by #2718
Sorry, something went wrong.
No branches or pull requests
Describe the bug
The
compile_sql
andrun_sql
methods ofdbt rpc
currently include Jinja comments{# #}
in their compiled SQL.Steps To Reproduce
Run an RPC server per docs
Send a request (method
compile_sql
orrun_sql
) where the SQL contains a Jinja commentExpected behavior
The output of
dbt --version
:$ dbt --version installed version: 0.17.1-rc4 latest version: 0.17.0 Your version of dbt is ahead of the latest release! Plugins: - bigquery: 0.17.1rc4 - snowflake: 0.17.1rc4 - redshift: 0.17.1rc4 - postgres: 0.17.1rc4
The text was updated successfully, but these errors were encountered: