Add test for segfault

This commit is contained in:
alesapin 2018-09-19 15:18:10 +03:00
parent 520446df53
commit bb4be0515b
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1 @@
Still alive

View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -e
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
. $CURDIR/../shell_config.sh
${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 test.squashed_numbers"
${CLICKHOUSE_CLIENT} --query "create table test.squashed_numbers (SomeID UInt8, DifferentID UInt8, OtherID UInt8) engine Memory"
cat ${CLICKHOUSE_TMP}/test_squashing_block_without_column.out | ${CLICKHOUSE_CLIENT} --query "insert into test.squashed_numbers format Native"
${CLICKHOUSE_CLIENT} --query "select 'Still alive'"