mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Merge pull request #6703 from arenadata/ADQM-40
test for orc input format
This commit is contained in:
commit
24c8ee9fcd
2
dbms/tests/queries/0_stateless/00900_orc_load.reference
Normal file
2
dbms/tests/queries/0_stateless/00900_orc_load.reference
Normal file
@ -0,0 +1,2 @@
|
||||
0 0 0 0 0 2019-01-01 test1
|
||||
2147483647 -1 9223372036854775806 123.345345 345345.3453451212 2019-01-01 test2
|
17
dbms/tests/queries/0_stateless/00900_orc_load.sh
Executable file
17
dbms/tests/queries/0_stateless/00900_orc_load.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
. $CUR_DIR/../shell_config.sh
|
||||
|
||||
CB_DIR=$(dirname "$CLICKHOUSE_CLIENT_BINARY")
|
||||
[ "$CB_DIR" == "." ] && ROOT_DIR=$CUR_DIR/../../../..
|
||||
[ "$CB_DIR" != "." ] && BUILD_DIR=$CB_DIR/../..
|
||||
[ -z "$ROOT_DIR" ] && ROOT_DIR=$CB_DIR/../../..
|
||||
|
||||
DATA_FILE=$CUR_DIR/data_orc/test.orc
|
||||
|
||||
${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS orc_load"
|
||||
${CLICKHOUSE_CLIENT} --query="CREATE TABLE orc_load (int Int32, smallint Int8, bigint Int64, float Float32, double Float64, date Date, y String) ENGINE = Memory"
|
||||
cat $DATA_FILE | ${CLICKHOUSE_CLIENT} -q "insert into orc_load format ORC"
|
||||
${CLICKHOUSE_CLIENT} --query="select * from orc_load"
|
||||
|
BIN
dbms/tests/queries/0_stateless/data_orc/test.orc
Normal file
BIN
dbms/tests/queries/0_stateless/data_orc/test.orc
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user