mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 16:50:48 +00:00
Merge pull request #45065 from ClickHouse/fix-low-cardinality-in-nested-lambda-capture
Fix Cannot capture column for nested lambda with LowCardinality
This commit is contained in:
commit
d6748f9fae
@ -55,6 +55,8 @@ public:
|
||||
/// default implementation for Nothing.
|
||||
/// Example: arrayMap(x -> CAST(x, 'UInt8'), []);
|
||||
bool useDefaultImplementationForNothing() const override { return false; }
|
||||
/// Example: SELECT arrayMap(x -> (x + (arrayMap(y -> ((x + y) + toLowCardinality(1)), [])[1])), [])
|
||||
bool useDefaultImplementationForLowCardinalityColumns() const override { return false; }
|
||||
|
||||
private:
|
||||
ExpressionActionsPtr expression_actions;
|
||||
|
@ -9,3 +9,4 @@
|
||||
[0,2,4,6]
|
||||
[0,2,4,6,8]
|
||||
[['a']]
|
||||
[]
|
||||
|
@ -9,3 +9,5 @@ CREATE TABLE test_array(resources_host Array(LowCardinality(String))) ENGINE = M
|
||||
insert into test_array values (['a']);
|
||||
SELECT arrayMap(i -> [resources_host[i]], arrayEnumerate(resources_host)) FROM test_array;
|
||||
drop table if exists test_array;
|
||||
|
||||
SELECT arrayMap(x -> (x + (arrayMap(y -> ((x + y) + toLowCardinality(1)), [])[1])), []);
|
||||
|
Loading…
Reference in New Issue
Block a user