2017-09-01 21:46:12 +00:00
|
|
|
#!/usr/bin/env bash
|
2017-08-22 19:51:03 +00:00
|
|
|
|
|
|
|
clickhouse-client -q "DROP TABLE IF EXISTS test.ws";
|
|
|
|
clickhouse-client -q "CREATE TABLE test.ws (i UInt8) ENGINE = Memory";
|
|
|
|
|
|
|
|
clickhouse-client -q "INSERT INTO test.ws FORMAT RowBinary ;";
|
|
|
|
clickhouse-client -q "INSERT INTO test.ws FORMAT RowBinary ; ";
|
|
|
|
clickhouse-client -q "INSERT INTO test.ws FORMAT RowBinary
|
|
|
|
; ";
|
|
|
|
echo -n ";" | clickhouse-client -q "INSERT INTO test.ws FORMAT RowBinary";
|
|
|
|
|
|
|
|
clickhouse-client --max_threads=1 -q "SELECT * FROM test.ws";
|
|
|
|
clickhouse-client -q "DROP TABLE test.ws";
|
|
|
|
|
|
|
|
|
|
|
|
clickhouse-client -q "SELECT ''";
|
|
|
|
|
|
|
|
|
|
|
|
clickhouse-client -q "CREATE TABLE test.ws (s String) ENGINE = Memory";
|
|
|
|
clickhouse-client -q "INSERT INTO test.ws FORMAT TSV ;
|
|
|
|
";
|
|
|
|
echo ";" | clickhouse-client -q "INSERT INTO test.ws FORMAT TSV"
|
|
|
|
if clickhouse-client -q "INSERT INTO test.ws FORMAT TSV;" 1>/dev/null 2>/dev/null; then
|
|
|
|
echo ERROR;
|
|
|
|
fi
|
|
|
|
clickhouse-client --max_threads=1 -q "SELECT * FROM test.ws";
|
|
|
|
|
|
|
|
clickhouse-client -q "DROP TABLE test.ws";
|