/.github/scripts/sql-correctness/get-dolt-correctness-job-json.sh: return percentage of correctness

This commit is contained in:
Dustin Brown
2021-02-17 12:21:53 -08:00
parent 70a0528b6d
commit 798ba606d8

View File

@@ -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 '
{