We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88c3d84 commit cf53d03Copy full SHA for cf53d03
macros/resources/stored-procedures/create__check_data_diff.sql
@@ -184,9 +184,9 @@
184
,trg_table
185
,column_name
186
,cnt as diff_count
187
- ,(select count(*) from '|| src_db || '.' || src_schema || '.' || src_table || ') as total_count
+ ,(select count(*) from '|| src_db || '.' || src_schema || '.' || src_table || ' where ' || where_condition || ')) as total_count
188
,(1 - match_rate) as diff_feeded_rate
189
- ,(1 - diff_count / total_count) as match_percentage
+ ,(1 - diff_count / 2 * 1.0 / total_count) as match_percentage
190
,''' || ? ||''' as last_data_diff_timestamp
191
,''' || ? ||''' as diff_run_id
192
from calc
0 commit comments