Update src/Storages/StorageMaterializeMySQL.cpp

Co-authored-by: Alexander Kuzmenkov <36882414+akuzm@users.noreply.github.com>
This commit is contained in:
tavplubix 2021-04-20 15:38:02 +03:00 committed by GitHub
parent 3b4bd18809
commit d9ef1a9368
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,7 @@ Pipe StorageMaterializeMySQL::read(
{
Block pipe_header = pipe.getHeader();
auto syntax = TreeRewriter(context).analyze(expressions, pipe_header.getNamesAndTypesList());
ExpressionActionsPtr expression_actions = ExpressionAnalyzer(expressions, syntax, context).getActions(true, false);
ExpressionActionsPtr expression_actions = ExpressionAnalyzer(expressions, syntax, context).getActions(true /* add_aliases */, false /* project_result */);
pipe.addSimpleTransform([&](const Block & header)
{