mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Add test for segfault
This commit is contained in:
parent
520446df53
commit
bb4be0515b
@ -0,0 +1 @@
|
||||
Still alive
|
15
dbms/tests/queries/0_stateless/00719_insert_block_without_column.sh
Executable file
15
dbms/tests/queries/0_stateless/00719_insert_block_without_column.sh
Executable 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'"
|
Loading…
Reference in New Issue
Block a user