Skip to content

Commit

Permalink
fix(profiling): add parenthesis to the formatted anomaly criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
luis-dk committed Nov 8, 2024
1 parent c37ff38 commit 776d2b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ LEFT JOIN v_inactive_anomalies i
AND '{ANOMALY_ID}' = i.anomaly_id)
WHERE p.profile_run_id = '{PROFILE_RUN_ID}'::UUID
AND i.anomaly_id IS NULL
AND {ANOMALY_CRITERIA};
AND ({ANOMALY_CRITERIA});
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ WITH mults AS ( SELECT p.project_code,
AND '{ANOMALY_ID}' = i.anomaly_id)
WHERE p.profile_run_id = '{PROFILE_RUN_ID}'::UUID
AND i.anomaly_id IS NULL
AND {ANOMALY_CRITERIA}
AND ({ANOMALY_CRITERIA})
)
INSERT INTO profile_anomaly_results
(project_code, table_groups_id, profile_run_id, anomaly_id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ WITH all_matches
AND p.column_name = i.column_name
AND '{ANOMALY_ID}' = i.anomaly_id)
WHERE p.profile_run_id = '{PROFILE_RUN_ID}'::UUID
AND {ANOMALY_CRITERIA}
AND ({ANOMALY_CRITERIA})
AND p.top_freq_values > ''
AND i.anomaly_id IS NULL
AND fn_count_intersecting_items(LOWER(fn_extract_top_values(p.top_freq_values)), v.check_values, '|') > 1
Expand Down

0 comments on commit 776d2b3

Please sign in to comment.