/.github/scripts/sql-correctness/get-dolt-correctness-job-json.sh: ignore skipped results

This commit is contained in:
Dustin Brown
2021-02-18 14:33:38 -08:00
parent b8bde8515e
commit 0ab55b5227

View File

@@ -14,7 +14,7 @@ timeprefix="$4"
actorprefix="$5"
format="$6"
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"
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 where result != 'skipped') as all_results"
echo '
{