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

audit-helper: make commented out sql TSQL compliant #54

Merged
merged 2 commits into from
Jun 25, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update compare_queries.sql
  • Loading branch information
dataders authored Jun 24, 2021
commit a2b5a4645d84db6a2f05c1044da12c9df44c41ff
4 changes: 2 additions & 2 deletions macros/dbt_audit_helper/compare_queries.sql
Original file line number Diff line number Diff line change
@@ -72,7 +72,7 @@ summary_stats as (
group by in_a, in_b
)
-- select * from all_records
-- where not (in_a and in_b)
-- where not (in_a=1 and in_b=1)
-- order by {{ primary_key ~ ", " if primary_key is not none }} in_a desc, in_b desc

select
@@ -86,4 +86,4 @@ from summary_stats

{% macro synapse__compare_queries(a_query, b_query, primary_key=None) -%}
{% do return( tsql_utils.sqlserver__compare_queries(a_query, b_query, primary_key=None)) %}
{%- endmacro %}
{%- endmacro %}