mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
add test [#CLICKHOUSE-3603]
This commit is contained in:
parent
ba43aaa5c0
commit
8e3bf95f98
@ -0,0 +1,3 @@
|
||||
0 0
|
||||
aaa 0 0
|
||||
bbb 0 -0
|
15
dbms/tests/queries/0_stateless/00574_empty_strings_deserialization.sh
Executable file
15
dbms/tests/queries/0_stateless/00574_empty_strings_deserialization.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
. $CURDIR/../shell_config.sh
|
||||
|
||||
$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS test.empty_strings_deserialization"
|
||||
$CLICKHOUSE_CLIENT -q "CREATE TABLE test.empty_strings_deserialization(s String, i Int32, f Float32) ENGINE Memory"
|
||||
|
||||
echo ',,' | $CLICKHOUSE_CLIENT -q "INSERT INTO test.empty_strings_deserialization FORMAT CSV"
|
||||
echo 'aaa,-,' | $CLICKHOUSE_CLIENT -q "INSERT INTO test.empty_strings_deserialization FORMAT CSV"
|
||||
echo 'bbb,,-' | $CLICKHOUSE_CLIENT -q "INSERT INTO test.empty_strings_deserialization FORMAT CSV"
|
||||
|
||||
$CLICKHOUSE_CLIENT -q "SELECT * FROM test.empty_strings_deserialization ORDER BY s"
|
||||
|
||||
$CLICKHOUSE_CLIENT -q "DROP TABLE test.empty_strings_deserialization"
|
Loading…
Reference in New Issue
Block a user