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

fix quick_are_queries_identical macro for BigQuery #118

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
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
4 changes: 2 additions & 2 deletions macros/quick_are_queries_identical.sql
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ but it's a good way to quickly verify identical results if that's what you're ex
{{ audit_helper.event_time_filter(event_time_props) }}
)

select count(distinct hash_result) = 1 as are_tables_identical
select count(distinct IFNULL(hash_result,0)) = 1 as are_tables_identical
from (
select bit_xor(farm_fingerprint(to_json_string(query_a))) as hash_result
from query_a
Expand Down Expand Up @@ -67,4 +67,4 @@ but it's a good way to quickly verify identical results if that's what you're ex
{{ audit_helper.event_time_filter(event_time_props) }}

) as hashes
{% endmacro %}
{% endmacro %}
Loading