mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Merge pull request #4115 from 4ertus2/ast
Fix "Unknown identifier" in lambda
This commit is contained in:
commit
be762f58e1
@ -157,7 +157,7 @@ void RequiredSourceColumnsMatcher::visit(const ASTFunction & node, const ASTPtr
|
||||
local_aliases.push_back(name);
|
||||
|
||||
/// 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)
|
||||
data.private_aliases.erase(name);
|
||||
|
@ -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;
|
Loading…
Reference in New Issue
Block a user