Fix build

This commit is contained in:
Maksim Kita 2022-05-02 14:27:00 +02:00
parent 0e04c2cbc8
commit 2377106370

View File

@ -41,7 +41,7 @@ std::pair<Field, std::shared_ptr<const IDataType>> evaluateConstantExpression(co
auto ast = node->clone();
if (ASTSubquery * subquery = ast->as<ASTSubquery>())
if (ast->as<ASTSubquery>() != nullptr)
{
/** For subqueries getColumnName if there are no alias will return __subquery_ + 'hash'.
* If there is alias getColumnName for subquery will return alias.