diff --git a/src/Interpreters/replaceAliasColumnsInFilter.cpp b/src/Interpreters/replaceAliasColumnsInFilter.cpp index 7d113be88c7..db1abe38cdd 100644 --- a/src/Interpreters/replaceAliasColumnsInFilter.cpp +++ b/src/Interpreters/replaceAliasColumnsInFilter.cpp @@ -16,7 +16,7 @@ ASTPtr replaceAliasColumnsInFilter(ASTPtr && ast, const ColumnsDescription & col if (temp_select.prewhere()) aliase_column_visitor.visit(temp_select.refPrewhere()); - return ast; + return std::move(ast); } }