mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
fix another context-related segfault
This commit is contained in:
parent
7af916e44a
commit
20d95a21fc
@ -90,6 +90,10 @@ Pipe::Pipe(Pipes && pipes, ProcessorPtr transform)
|
|||||||
|
|
||||||
max_parallel_streams += pipe.max_parallel_streams;
|
max_parallel_streams += pipe.max_parallel_streams;
|
||||||
processors.insert(processors.end(), pipe.processors.begin(), pipe.processors.end());
|
processors.insert(processors.end(), pipe.processors.begin(), pipe.processors.end());
|
||||||
|
|
||||||
|
std::move(pipe.table_locks.begin(), pipe.table_locks.end(), std::back_inserter(table_locks));
|
||||||
|
std::move(pipe.interpreter_context.begin(), pipe.interpreter_context.end(), std::back_inserter(interpreter_context));
|
||||||
|
std::move(pipe.storage_holders.begin(), pipe.storage_holders.end(), std::back_inserter(storage_holders));
|
||||||
}
|
}
|
||||||
|
|
||||||
output_port = &transform->getOutputs().front();
|
output_port = &transform->getOutputs().front();
|
||||||
|
@ -39,9 +39,7 @@ done
|
|||||||
wait
|
wait
|
||||||
|
|
||||||
$CLICKHOUSE_CLIENT -q "CREATE TABLE $db.table_merge (i UInt64, d Date, s String, n Nested(i UInt8, f Float32)) ENGINE=Merge('$db', '^table_')"
|
$CLICKHOUSE_CLIENT -q "CREATE TABLE $db.table_merge (i UInt64, d Date, s String, n Nested(i UInt8, f Float32)) ENGINE=Merge('$db', '^table_')"
|
||||||
#FIXME the following query leads to segfault
|
$CLICKHOUSE_CLIENT -q "SELECT count() * $count_multiplier, i, d, s, n.i, n.f FROM $db.table_merge GROUP BY i, d, s, n.i, n.f ORDER BY i"
|
||||||
#$CLICKHOUSE_CLIENT -q "SELECT count() * $count_multiplier, i, d, s, n.i, n.f FROM $db.table_merge GROUP BY i, d, s, n.i, n.f ORDER BY i"
|
|
||||||
$CLICKHOUSE_CLIENT -q "SELECT 10000, i, d, s, n.i, n.f FROM $db.table_1_1 GROUP BY i, d, s, n.i, n.f ORDER BY i"
|
|
||||||
|
|
||||||
db_engine=`$CLICKHOUSE_CLIENT -q "SELECT engine FROM system.databases WHERE name='$db'"`
|
db_engine=`$CLICKHOUSE_CLIENT -q "SELECT engine FROM system.databases WHERE name='$db'"`
|
||||||
|
|
||||||
@ -53,7 +51,6 @@ $CLICKHOUSE_CLIENT -q "SELECT '01193_metadata_loading', $elapsed_ms FORMAT Null"
|
|||||||
|
|
||||||
if [[ $elapsed_ms -le $max_time_ms ]]; then echo ok; fi
|
if [[ $elapsed_ms -le $max_time_ms ]]; then echo ok; fi
|
||||||
|
|
||||||
#$CLICKHOUSE_CLIENT -q "SELECT count() * $count_multiplier, i, d, s, n.i, n.f FROM $db.table_merge GROUP BY i, d, s, n.i, n.f ORDER BY i"
|
$CLICKHOUSE_CLIENT -q "SELECT count() * $count_multiplier, i, d, s, n.i, n.f FROM $db.table_merge GROUP BY i, d, s, n.i, n.f ORDER BY i"
|
||||||
$CLICKHOUSE_CLIENT -q "SELECT 8000, i, d, s, n.i, n.f FROM $db.table_1_1 GROUP BY i, d, s, n.i, n.f ORDER BY i"
|
|
||||||
|
|
||||||
$CLICKHOUSE_CLIENT -q "DROP DATABASE $db"
|
$CLICKHOUSE_CLIENT -q "DROP DATABASE $db"
|
||||||
|
Loading…
Reference in New Issue
Block a user