You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm searching for relevant snippets in your repository. If this is your first time using Sweep, I'm indexing your repository, which will take a few minutes.
Tip
To recreate the pull request, edit the issue title or description.
Expected behavior
The query runner should ignore the Jinga comment and generate a valid SQL in the backend.
Actual behavior
Correct SQL generated
Steps To Reproduce
Take any dbt model and add a comment line as the first line
When using the Execute dbt SQL feature this query is generated:
when I remove the comment, the correct SQL is generated.
Log output/Screenshots
I presume the query execute feature checks if the query needs to be encapsukatedby checking if the first line/word is 'with' to detect a CTE.
This check either needs to be done after the Jinga template resolution or be more robust.
Operating System
Windows 11
dbt version
1.8.0
dbt Adapter
dbt-fabric-1.8.3
dbt Power User version
0.39.12
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: