mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
fix crash with enabled optimize_functions_to_subcolumns
This commit is contained in:
parent
8a04ed72af
commit
4ff9627f60
@ -359,6 +359,7 @@ InterpreterSelectQuery::InterpreterSelectQuery(
|
||||
table_lock.reset();
|
||||
table_id = StorageID::createEmpty();
|
||||
metadata_snapshot = nullptr;
|
||||
storage_snapshot = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1 @@
|
||||
2
|
@ -0,0 +1,3 @@
|
||||
SET optimize_functions_to_subcolumns = 1;
|
||||
SELECT count(*) FROM numbers(2) AS n1, numbers(3) AS n2, numbers(4) AS n3
|
||||
WHERE (n1.number = n2.number) AND (n2.number = n3.number);
|
Loading…
Reference in New Issue
Block a user