mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
fix collecting required columns in lambda
This commit is contained in:
parent
c70e8cc5f0
commit
1d0bee7dee
@ -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