mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-09 17:14:47 +00:00
Fix flaky test
This commit is contained in:
parent
f3710e9a29
commit
118e329e23
@ -1,14 +1,15 @@
|
|||||||
1
|
1
|
||||||
{"meta": [{"name":"value", "type":"UInt8"}, {"name":"name", "type":"String"}]}}
|
{"meta": [{"name":"value", "type":"UInt8"}, {"name":"name", "type":"String"}, {"name":"sleep(0.1)", "type":"UInt8"}]}}
|
||||||
{"data":[1, "a"]}
|
|
||||||
{"data":[2, "b"]}
|
|
||||||
{"data":[3, "c"]}
|
|
||||||
{"progress":{"read_rows":"3","read_bytes":"33","written_rows":"0","written_bytes":"0","total_rows_to_read":"3","result_rows":"0","result_bytes":"0","elapsed_ns":"ELAPSED_NS"}}
|
{"progress":{"read_rows":"3","read_bytes":"33","written_rows":"0","written_bytes":"0","total_rows_to_read":"3","result_rows":"0","result_bytes":"0","elapsed_ns":"ELAPSED_NS"}}
|
||||||
|
{"data":[1, "a", 0]}
|
||||||
|
{"data":[2, "b", 0]}
|
||||||
|
{"data":[3, "c", 0]}
|
||||||
{"statistics": {"rows":3, "elapsed":ELAPSED, "rows_read":3, "bytes_read":33}}
|
{"statistics": {"rows":3, "elapsed":ELAPSED, "rows_read":3, "bytes_read":33}}
|
||||||
2
|
2
|
||||||
{"meta": [{"name":"name", "type":"String"}, {"name":"c", "type":"UInt64"}]}}
|
{"meta": [{"name":"name", "type":"String"}, {"name":"count()", "type":"UInt64"}, {"name":"c", "type":"UInt8"}]}}
|
||||||
{"data":["a", "1"]}
|
{"progress":{"read_rows":"3","read_bytes":"30","written_rows":"0","written_bytes":"0","total_rows_to_read":"3","result_rows":"0","result_bytes":"0","elapsed_ns":"ELAPSED_NS"}}
|
||||||
{"data":["b", "1"]}
|
{"data":["a", "1", 0]}
|
||||||
{"data":["c", "1"]}
|
{"data":["b", "1", 0]}
|
||||||
{"totals": ["", "3"]}}
|
{"data":["c", "1", 0]}
|
||||||
|
{"totals": ["", "3", 0]}}
|
||||||
{"statistics": {"rows":3, "elapsed":ELAPSED, "rows_read":3, "bytes_read":30}}
|
{"statistics": {"rows":3, "elapsed":ELAPSED, "rows_read":3, "bytes_read":30}}
|
||||||
|
@ -11,10 +11,10 @@ $CLICKHOUSE_CLIENT -q "SELECT 1;"
|
|||||||
# Check JSONCompactWithProgress Output
|
# Check JSONCompactWithProgress Output
|
||||||
$CLICKHOUSE_CLIENT -q "CREATE TABLE test_table (value UInt8, name String) ENGINE = MergeTree() ORDER BY value;"
|
$CLICKHOUSE_CLIENT -q "CREATE TABLE test_table (value UInt8, name String) ENGINE = MergeTree() ORDER BY value;"
|
||||||
$CLICKHOUSE_CLIENT -q "INSERT INTO test_table VALUES (1, 'a'), (2, 'b'), (3, 'c');"
|
$CLICKHOUSE_CLIENT -q "INSERT INTO test_table VALUES (1, 'a'), (2, 'b'), (3, 'c');"
|
||||||
$CLICKHOUSE_CLIENT -q "SELECT * FROM test_table FORMAT JSONCompactWithProgress settings max_block_size=2;" | sed -E 's/"elapsed_ns":"[0-9]+"/"elapsed_ns":"ELAPSED_NS"/g; s/"elapsed":[0-9]+\.[0-9]+/"elapsed":ELAPSED/g'
|
$CLICKHOUSE_CLIENT -q "SELECT *, sleep(0.1) FROM test_table FORMAT JSONCompactWithProgress settings max_block_size=2;" | sed -E 's/"elapsed_ns":"[0-9]+"/"elapsed_ns":"ELAPSED_NS"/g; s/"elapsed":[0-9]+\.[0-9]+/"elapsed":ELAPSED/g'
|
||||||
|
|
||||||
$CLICKHOUSE_CLIENT -q "SELECT 2;"
|
$CLICKHOUSE_CLIENT -q "SELECT 2;"
|
||||||
# Check Totals
|
# Check Totals
|
||||||
$CLICKHOUSE_CLIENT -q "SELECT name, count() AS c FROM test_table GROUP BY name WITH TOTALS ORDER BY name FORMAT JSONCompactWithProgress settings max_block_size=2;" | sed -E 's/"elapsed_ns":"[0-9]+"/"elapsed_ns":"ELAPSED_NS"/g; s/"elapsed":[0-9]+\.[0-9]+/"elapsed":ELAPSED/g'
|
$CLICKHOUSE_CLIENT -q "SELECT name, count(), sleep(0.1) AS c FROM test_table GROUP BY name WITH TOTALS ORDER BY name FORMAT JSONCompactWithProgress settings max_block_size=2;" | sed -E 's/"elapsed_ns":"[0-9]+"/"elapsed_ns":"ELAPSED_NS"/g; s/"elapsed":[0-9]+\.[0-9]+/"elapsed":ELAPSED/g'
|
||||||
|
|
||||||
$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS test_table;"
|
$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS test_table;"
|
||||||
|
Loading…
Reference in New Issue
Block a user