Fix build

This commit is contained in:
Nikolay Degterinsky 2023-01-15 13:46:55 +00:00
parent 36c20bf293
commit 24b686734d

View File

@ -175,9 +175,9 @@ private:
{
for (const auto & transformer : qualified_asterisk->transformers->children)
{
if (transformer.get()->as<ASTColumnsApplyTransformer>() ||
transformer.get()->as<ASTColumnsExceptTransformer>() ||
transformer.get()->as<ASTColumnsReplaceTransformer>())
if (transformer->as<ASTColumnsApplyTransformer>() ||
transformer->as<ASTColumnsExceptTransformer>() ||
transformer->as<ASTColumnsReplaceTransformer>())
IASTColumnsTransformer::transform(transformer, columns);
else
throw Exception("Logical error: qualified asterisk must only have children of IASTColumnsTransformer type", ErrorCodes::LOGICAL_ERROR);