right/clickhouse local--file"$test_name-raw.tsv"--structure'query text, run int, version UInt32, time float'--query"$(cat$script_dir/eqmed.sql)">"$test_name-report.tsv"
done
}
run_tests
# Analyze results
result_structure="fail int, left float, right float, diff float, rd Array(float), query text"
result_structure="left float, right float, diff float, rd Array(float), query text"
right/clickhouse local--file'*-report.tsv'-S"$result_structure"--query"select * from table where rd[3] > 0.05 order by rd[3] desc"> flap-prone.tsv
right/clickhouse local--file'*-report.tsv'-S"$result_structure"--query"select * from table where diff > 0.05 and diff > rd[3] order by diff desc"> failed.tsv
right/clickhouse local--file'*-report.tsv'-S"$result_structure"--query"select * from table where diff > 0.05 and diff > rd[3] order by diff desc"> bad-perf.tsv