ClickHouse/tests/queries/0_stateless/00900_orc_load.sh

13 lines
502 B
Bash
Raw Normal View History

2019-08-28 13:26:38 +00:00
#!/usr/bin/env bash
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
. "$CUR_DIR"/../shell_config.sh
2019-08-28 13:26:38 +00:00
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"
2019-08-28 13:26:38 +00:00
${CLICKHOUSE_CLIENT} --query="select * from orc_load"