mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
dbms: fixed error [#METR-17758].
This commit is contained in:
parent
87465416b0
commit
8d25390c48
@ -937,7 +937,7 @@ static SharedPtr<InterpreterSelectQuery> interpretSubquery(
|
||||
void ExpressionAnalyzer::addExternalStorage(ASTPtr & subquery_or_table_name)
|
||||
{
|
||||
/// При нераспределённых запросах, создание временных таблиц не имеет смысла.
|
||||
if (!storage->isRemote())
|
||||
if (!(storage && storage->isRemote()))
|
||||
return;
|
||||
|
||||
if (const ASTIdentifier * table = typeid_cast<const ASTIdentifier *>(&*subquery_or_table_name))
|
||||
|
Loading…
Reference in New Issue
Block a user