fix crash with enabled optimize_functions_to_subcolumns

This commit is contained in:
Anton Popov 2022-03-23 01:25:48 +00:00
parent 8a04ed72af
commit 4ff9627f60
3 changed files with 5 additions and 0 deletions

View File

@ -359,6 +359,7 @@ InterpreterSelectQuery::InterpreterSelectQuery(
table_lock.reset();
table_id = StorageID::createEmpty();
metadata_snapshot = nullptr;
storage_snapshot = nullptr;
}
}

View File

@ -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);