mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Added test [#METR-25976].
This commit is contained in:
parent
1d7a91a544
commit
35ff7ab9f2
@ -0,0 +1,6 @@
|
||||
{"s":"","x":"ABC"}
|
||||
{"s":"","x":"DEF"}
|
||||
{"s":"","x":"JKL"}
|
||||
{"s":"","x":"MNO"}
|
||||
{"s":"hello","x":"GHI"}
|
||||
{"s":"hello","x":"PQR"}
|
14
dbms/tests/queries/0_stateless/00485_http_insert_format.sh
Executable file
14
dbms/tests/queries/0_stateless/00485_http_insert_format.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
clickhouse-client --query="DROP TABLE IF EXISTS test.format"
|
||||
clickhouse-client --query="CREATE TABLE test.format (s String, x FixedString(3)) ENGINE = Memory"
|
||||
|
||||
echo -ne '\tABC\n' | curl -sS "http://localhost:8123/?query=INSERT+INTO+test.format+FORMAT+TabSeparated" --data-binary @-
|
||||
echo -ne 'INSERT INTO test.format FORMAT TabSeparated\n\tDEF\n' | curl -sS "http://localhost:8123/" --data-binary @-
|
||||
echo -ne 'INSERT INTO test.format FORMAT TabSeparated hello\tGHI\n' | curl -sS "http://localhost:8123/" --data-binary @-
|
||||
echo -ne 'INSERT INTO test.format FORMAT TabSeparated\r\n\tJKL\n' | curl -sS "http://localhost:8123/" --data-binary @-
|
||||
echo -ne 'INSERT INTO test.format FORMAT TabSeparated \t\r\n\tMNO\n' | curl -sS "http://localhost:8123/" --data-binary @-
|
||||
echo -ne 'INSERT INTO test.format FORMAT TabSeparated\t\t\thello\tPQR\n' | curl -sS "http://localhost:8123/" --data-binary @-
|
||||
|
||||
clickhouse-client --query="SELECT * FROM test.format ORDER BY s, x FORMAT JSONEachRow"
|
||||
clickhouse-client --query="DROP TABLE test.format"
|
Loading…
Reference in New Issue
Block a user