mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-08 02:36:27 -05:00
/.github/scripts/sql-correctness/get-dolt-correctness-job-json.sh: update queries to include result counts and total test count
This commit is contained in:
@@ -14,6 +14,8 @@ timeprefix="$4"
|
|||||||
actorprefix="$5"
|
actorprefix="$5"
|
||||||
format="$6"
|
format="$6"
|
||||||
|
|
||||||
|
resultCountQuery="select result, count(*) as total from results where result != 'skipped' group by result;"
|
||||||
|
testCountQuery="select count(*) as total_tests from results where result != 'skipped';"
|
||||||
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"
|
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 '
|
echo '
|
||||||
@@ -46,6 +48,8 @@ echo '
|
|||||||
"--region=us-west-2",
|
"--region=us-west-2",
|
||||||
"--results-dir='$timeprefix'",
|
"--results-dir='$timeprefix'",
|
||||||
"--results-prefix='$actorprefix'",
|
"--results-prefix='$actorprefix'",
|
||||||
|
"'"$resultCountQuery"'",
|
||||||
|
"'"$testCountQuery"'",
|
||||||
"'"$correctnessQuery"'"
|
"'"$correctnessQuery"'"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user