Skip to content

Commit a1500cd

Browse files
committed
fix(mssql): arithmetic overflow error in Incr_Avg_Shift test
1 parent 62252a9 commit a1500cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testgen/template/dbsetup_test_types/test_types_Incr_Avg_Shift.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ test_types:
5656
test_type: Incr_Avg_Shift
5757
sql_flavor: mssql
5858
measure: |-
59-
COALESCE(ABS( ({BASELINE_AVG} - (SUM({COLUMN_NAME}) - {BASELINE_SUM}) / NULLIF(CAST(COUNT({COLUMN_NAME}) AS FLOAT) - {BASELINE_VALUE_CT}, 0)) / {BASELINE_SD} ), 0)
59+
COALESCE(ABS( ({BASELINE_AVG} - (SUM(CAST("{COLUMN_NAME}" AS FLOAT)) - {BASELINE_SUM}) / NULLIF(CAST(COUNT({COLUMN_NAME}) AS FLOAT) - {BASELINE_VALUE_CT}, 0)) / {BASELINE_SD} ), 0)
6060
test_operator: '>='
6161
test_condition: |-
6262
{THRESHOLD_VALUE}

0 commit comments

Comments
 (0)