Merge pull request #4115 from 4ertus2/ast

Fix "Unknown identifier" in lambda
This commit is contained in:
alexey-milovidov 2019-01-22 02:28:13 +03:00 committed by GitHub
commit be762f58e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View File

@ -157,7 +157,7 @@ void RequiredSourceColumnsMatcher::visit(const ASTFunction & node, const ASTPtr
local_aliases.push_back(name); local_aliases.push_back(name);
/// visit child with masked local aliases /// visit child with masked local aliases
visit(node.arguments->children[1], data); RequiredSourceColumnsVisitor(data).visit(node.arguments->children[1]);
for (const auto & name : local_aliases) for (const auto & name : local_aliases)
data.private_aliases.erase(name); data.private_aliases.erase(name);

View File

@ -0,0 +1,5 @@
CREATE TABLE IF NOT EXISTS test.sign (Sign Int8, Arr Array(Int8)) ENGINE = Memory;
SELECT arrayMap(x -> x * Sign, Arr) FROM test.sign;
DROP TABLE test.sign;