mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-05 16:15:41 -06:00
/.github/scripts/sql-correctness/get-dolt-correctness-job-json.sh: return percentage of correctness
This commit is contained in:
@@ -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 '
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user