Skip to content

Commit d4076a1

Browse files
committed
fix(hygiene-issues): numeric value out of range error
1 parent 5edee1e commit d4076a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

testgen/template/dbsetup_anomaly_types/profile_anomaly_types_Column_Pattern_Mismatch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ profile_anomaly_types:
2525
suggested_action: |-
2626
Review the values for any data that doesn't conform to the most common pattern and correct any data errors.
2727
dq_score_prevalence_formula: |-
28-
(p.record_ct - SPLIT_PART(p.top_patterns, '|', 1)::INT)::FLOAT/NULLIF(p.record_ct, 0)::FLOAT
28+
(p.record_ct - SPLIT_PART(p.top_patterns, '|', 1)::BIGINT)::FLOAT/NULLIF(p.record_ct, 0)::FLOAT
2929
dq_score_risk_factor: '0.66'
3030
dq_dimension: Validity
3131
target_data_lookups:

testgen/template/dbsetup_anomaly_types/profile_anomaly_types_Invalid_Zip3_USA.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ profile_anomaly_types:
1616
suggested_action: |-
1717
Review your source data, ingestion process, and any processing steps that update this column.
1818
dq_score_prevalence_formula: |-
19-
(NULLIF(p.record_ct, 0)::INT - SPLIT_PART(p.top_patterns, ' | ', 1)::INT)::FLOAT/NULLIF(p.record_ct, 0)::FLOAT
19+
(NULLIF(p.record_ct, 0)::INT - SPLIT_PART(p.top_patterns, ' | ', 1)::BIGINT)::FLOAT/NULLIF(p.record_ct, 0)::FLOAT
2020
dq_score_risk_factor: '1'
2121
dq_dimension: Validity
2222
target_data_lookups:

0 commit comments

Comments
 (0)