Merge pull request #15302 from ClickHouse/tavplubix-patch-2

Fix ASTColumnsReplaceTransformer::Replacement::clone()
This commit is contained in:
tavplubix 2020-09-26 19:10:00 +03:00 committed by GitHub
commit df6221f7bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ public:
ASTPtr clone() const override
{
auto replacement = std::make_shared<Replacement>(*this);
replacement->name = name;
replacement->children.clear();
replacement->expr = expr->clone();
replacement->children.push_back(replacement->expr);
return replacement;