From 798ba606d89fa19cd5cfe6a87042c24a4e90a21d Mon Sep 17 00:00:00 2001 From: Dustin Brown Date: Wed, 17 Feb 2021 12:21:53 -0800 Subject: [PATCH] /.github/scripts/sql-correctness/get-dolt-correctness-job-json.sh: return percentage of correctness --- .../scripts/sql-correctness/get-dolt-correctness-job-json.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/sql-correctness/get-dolt-correctness-job-json.sh b/.github/scripts/sql-correctness/get-dolt-correctness-job-json.sh index 68a5ec62c2..790de058a8 100755 --- a/.github/scripts/sql-correctness/get-dolt-correctness-job-json.sh +++ b/.github/scripts/sql-correctness/get-dolt-correctness-job-json.sh @@ -14,7 +14,7 @@ timeprefix="$4" actorprefix="$5" format="$6" -correctnessQuery="select count(*) from results;" +correctnessQuery="select ROUND(100.0 * (cast(ok_results.total as decimal) / (cast(all_results.total as decimal) + .000001))) as correctness_percentage from (select count(*) as total from results where result = 'ok') as ok_results join (select count(*) as total from results) as all_results" echo ' {