mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Merge pull request #4367 from yandex/unified-sets-fix-lc-cache
Fix LowCardinality cache for ColumnsHashing
This commit is contained in:
commit
d8aa74bc64
@ -364,7 +364,10 @@ struct HashMethodSingleLowCardinalityColumn : public SingleColumnMethod
|
||||
}
|
||||
|
||||
if constexpr (has_mapped)
|
||||
{
|
||||
mapped_cache[row] = it->second;
|
||||
return EmplaceResult(it->second, mapped_cache[row], inserted);
|
||||
}
|
||||
else
|
||||
return EmplaceResult(inserted);
|
||||
}
|
||||
|
@ -0,0 +1 @@
|
||||
100000000 0123456789
|
@ -0,0 +1,5 @@
|
||||
drop table if exists test.lc;
|
||||
create table test.lc (b LowCardinality(String)) engine=MergeTree order by b;
|
||||
insert into test.lc select '0123456789' from numbers(100000000);
|
||||
select count(), b from test.lc group by b;
|
||||
drop table if exists test.lc;
|
Loading…
Reference in New Issue
Block a user