mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Fix something bad
This commit is contained in:
parent
9626506585
commit
d905b83369
@ -412,7 +412,8 @@ void FlatDictionary::blockToAttributes(const Block & block)
|
|||||||
{
|
{
|
||||||
const auto keys_column = block.safeGetByPosition(0).column;
|
const auto keys_column = block.safeGetByPosition(0).column;
|
||||||
|
|
||||||
DictionaryKeysExtractor<DictionaryKeyType::Simple> keys_extractor({ keys_column }, DictionaryKeysArenaHolder<DictionaryKeyType::Simple>::getComplexKeyArena());
|
DictionaryKeysArenaHolder<DictionaryKeyType::Simple> arena_holder;
|
||||||
|
DictionaryKeysExtractor<DictionaryKeyType::Simple> keys_extractor({ keys_column }, arena_holder.getComplexKeyArena()); /// NOLINT(readability-static-accessed-through-instance)
|
||||||
size_t keys_size = keys_extractor.getKeysSize();
|
size_t keys_size = keys_extractor.getKeysSize();
|
||||||
|
|
||||||
static constexpr size_t key_offset = 1;
|
static constexpr size_t key_offset = 1;
|
||||||
|
@ -70,8 +70,7 @@ namespace
|
|||||||
const char * src_pos = src;
|
const char * src_pos = src;
|
||||||
const char * src_end = src + src_size;
|
const char * src_end = src + src_size;
|
||||||
char * dst_pos = dst;
|
char * dst_pos = dst;
|
||||||
// perfect hashmap to lookup html character references
|
|
||||||
HTMLCharacterHash hash;
|
|
||||||
// to hold char seq for lookup, reuse it
|
// to hold char seq for lookup, reuse it
|
||||||
std::vector<char> seq;
|
std::vector<char> seq;
|
||||||
while (true)
|
while (true)
|
||||||
|
Loading…
Reference in New Issue
Block a user