-
Notifications
You must be signed in to change notification settings - Fork 42
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
compare_queries does not work on Dremio #84
Comments
Escaping "count" field using double quotes, which I believe is SQL standard.
I'm struggling with a fix that does not break all other supported SQL dialects. In #85 I tried using Any help would be appreciated. |
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. |
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment to notify the maintainers. |
Describe the bug
compare_queries marco uses "count" as a field name in summary_stats CTE without escaping, which is not allowed in Dremio SQL.
Steps to reproduce
In Dremio environment, create the following model:
Run audit model:
dbt run -m regression_test
Expected results
Model runs.
Actual results
Model run fails, see log below.
Additional context
I can go into the compiled model file in "target" directory and manually quote "count" in summary_stats CTE and at the end where it is used. If I then copy and paste the SQL into Dremio console, it runs as works as intended.
Screenshots and log output
System information
Which database are you using dbt with?
Dremio.
The output of
dbt --version
:The operating system you're using:
Debian inside DevContainer via VSCode.
The output of
python --version
:Python 3.11.6
Are you interested in contributing the fix?
PR provided.
The text was updated successfully, but these errors were encountered: