mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 03:52:15 +00:00
* Received signal Segmentation fault (#1300) * Add test
This commit is contained in:
parent
54eb2bbb0a
commit
cbc81a6a9f
@ -102,8 +102,8 @@ void NullableAdapterBlockInputStream::buildActions(
|
|||||||
|
|
||||||
for (size_t i = 0; i < in_size; ++i)
|
for (size_t i = 0; i < in_size; ++i)
|
||||||
{
|
{
|
||||||
const auto & in_elem = in_sample.getByPosition(i);
|
const auto & in_elem = in_sample.safeGetByPosition(i);
|
||||||
const auto & out_elem = out_sample.getByPosition(i);
|
const auto & out_elem = out_sample.safeGetByPosition(i);
|
||||||
|
|
||||||
if (isConvertableTypes(in_elem.type, out_elem.type))
|
if (isConvertableTypes(in_elem.type, out_elem.type))
|
||||||
{
|
{
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
server still alive
|
14
dbms/tests/queries/0_stateless/00504_insert_miss_columns.sh
Executable file
14
dbms/tests/queries/0_stateless/00504_insert_miss_columns.sh
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# https://github.com/yandex/ClickHouse/issues/1300
|
||||||
|
|
||||||
|
clickhouse-client -q "DROP TABLE IF EXISTS test.advertiser";
|
||||||
|
clickhouse-client -q "DROP TABLE IF EXISTS test.advertiser_test";
|
||||||
|
clickhouse-client -q "CREATE TABLE test.advertiser ( action_date Date, adblock UInt8, imps Int64 ) Engine = SummingMergeTree( action_date, ( adblock ), 8192, ( imps ) )";
|
||||||
|
clickhouse-client -q "CREATE TABLE test.advertiser_test ( action_date Date, adblock UInt8, imps Int64, Hash UInt64 ) Engine = SummingMergeTree( action_date, ( adblock, Hash ), 8192, ( imps ) )";
|
||||||
|
|
||||||
|
# This test will fail. It's ok.
|
||||||
|
clickhouse-client -q "INSERT INTO test.advertiser_test SELECT *, sipHash64( CAST(adblock AS String) ), CAST(1 AS Int8) FROM test.advertiser;" 2>/dev/null
|
||||||
|
clickhouse-client -q "DROP TABLE test.advertiser";
|
||||||
|
clickhouse-client -q "DROP TABLE test.advertiser_test";
|
||||||
|
clickhouse-client -q "SELECT 'server still alive'";
|
Loading…
Reference in New Issue
Block a user