Merge pull request #60451 from Avogar/fix-map-array-func-lc

Try to fix logical error 'Cannot capture column because it has incompatible type' in mapContainsKeyLike
This commit is contained in:
Kruglov Pavel 2024-03-13 19:02:24 +01:00 committed by GitHub
commit 4b3f33c5fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 2 deletions

View File

@ -355,7 +355,7 @@ public:
{
arrays.emplace_back(
column_tuple->getColumnPtr(j),
recursiveRemoveLowCardinality(type_tuple.getElement(j)),
type_tuple.getElement(j),
array_with_type_and_name.name + "." + tuple_names[j]);
}
}
@ -363,7 +363,7 @@ public:
{
arrays.emplace_back(
column_array->getDataPtr(),
recursiveRemoveLowCardinality(array_type->getNestedType()),
array_type->getNestedType(),
array_with_type_and_name.name);
}

View File

@ -0,0 +1 @@
SELECT mapContainsKeyLike(map('aa', toLowCardinality(1), 'bb', toLowCardinality(2)), toLowCardinality('a%'));