mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
22 lines
976 B
Bash
Executable File
22 lines
976 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
. $CURDIR/../shell_config.sh
|
|
|
|
[ -e ${CLICKHOUSE_TMP}/test_squashing_block_without_column.out ] && rm ${CLICKHOUSE_TMP}/test_squashing_block_without_column.out
|
|
|
|
${CLICKHOUSE_CLIENT} --query "select number as SomeID, number+1 as OtherID from system.numbers limit 1000 into outfile '${CLICKHOUSE_TMP}/test_squashing_block_without_column.out' format Native"
|
|
|
|
${CLICKHOUSE_CLIENT} --query "drop table if exists squashed_numbers"
|
|
${CLICKHOUSE_CLIENT} --query "create table squashed_numbers (SomeID UInt64, DifferentID UInt64, OtherID UInt64) engine Memory"
|
|
|
|
#address=${CLICKHOUSE_HOST}
|
|
#port=${CLICKHOUSE_PORT_HTTP}
|
|
#url="${CLICKHOUSE_PORT_HTTP_PROTO}://$address:$port/"
|
|
|
|
${CLICKHOUSE_CURL} -sS --data-binary "@${CLICKHOUSE_TMP}/test_squashing_block_without_column.out" "${CLICKHOUSE_URL}&query=insert%20into%20squashed_numbers%20format%20Native"
|
|
|
|
${CLICKHOUSE_CLIENT} --query "select 'Still alive'"
|