mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Added test.
This commit is contained in:
parent
6d08b7b45a
commit
8ec70c2c3c
3
tests/queries/0_stateless/01358_lc_parquet.reference
Normal file
3
tests/queries/0_stateless/01358_lc_parquet.reference
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
abc
|
||||||
|
ghi
|
||||||
|
\N
|
25
tests/queries/0_stateless/01358_lc_parquet.sh
Executable file
25
tests/queries/0_stateless/01358_lc_parquet.sh
Executable file
@ -0,0 +1,25 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
|
. $CURDIR/../shell_config.sh
|
||||||
|
|
||||||
|
$CLICKHOUSE_CLIENT -q "drop table if exists test_lc"
|
||||||
|
$CLICKHOUSE_CLIENT -q "drop table if exists test"
|
||||||
|
$CLICKHOUSE_CLIENT -q "create table test (a String) Engine = MergeTree order by tuple()"
|
||||||
|
$CLICKHOUSE_CLIENT -q "create table test_lc (a LowCardinality(String)) Engine = MergeTree order by tuple()"
|
||||||
|
$CLICKHOUSE_CLIENT -q "select 'abc' as a format Parquet" | $CLICKHOUSE_CLIENT -q "insert into test_lc format Parquet"
|
||||||
|
$CLICKHOUSE_CLIENT -q "select a from test_lc format Parquet" | $CLICKHOUSE_CLIENT -q "insert into test format Parquet"
|
||||||
|
$CLICKHOUSE_CLIENT -q "select a from test order by a"
|
||||||
|
$CLICKHOUSE_CLIENT -q "drop table if exists test_lc"
|
||||||
|
$CLICKHOUSE_CLIENT -q "drop table if exists test"
|
||||||
|
|
||||||
|
$CLICKHOUSE_CLIENT -q "drop table if exists test_lc"
|
||||||
|
$CLICKHOUSE_CLIENT -q "drop table if exists test"
|
||||||
|
$CLICKHOUSE_CLIENT -q "create table test (a Nullable(String)) Engine = MergeTree order by tuple()"
|
||||||
|
$CLICKHOUSE_CLIENT -q "create table test_lc (a LowCardinality(Nullable(String))) Engine = MergeTree order by tuple()"
|
||||||
|
$CLICKHOUSE_CLIENT -q "select 'ghi' as a format Parquet" | $CLICKHOUSE_CLIENT -q "insert into test_lc format Parquet"
|
||||||
|
$CLICKHOUSE_CLIENT -q "select cast(Null as Nullable(String)) as a format Parquet" | $CLICKHOUSE_CLIENT -q "insert into test_lc format Parquet"
|
||||||
|
$CLICKHOUSE_CLIENT -q "select a from test_lc format Parquet" | $CLICKHOUSE_CLIENT -q "insert into test format Parquet"
|
||||||
|
$CLICKHOUSE_CLIENT -q "select a from test order by a"
|
||||||
|
$CLICKHOUSE_CLIENT -q "drop table if exists test_lc"
|
||||||
|
$CLICKHOUSE_CLIENT -q "drop table if exists test"
|
Loading…
Reference in New Issue
Block a user