Merge pull request #30241 from kitaisreal/complex-key-hashed-dictionary-read-fix-keys-copying

ComplexKeyHashedDictionary fix keys copy
This commit is contained in:
Maksim Kita 2021-10-16 02:03:37 +03:00 committed by GitHub
commit 99dd492ff2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -669,10 +669,7 @@ Pipe HashedDictionary<dictionary_key_type, sparse>::read(const Names & column_na
});
}
if constexpr (dictionary_key_type == DictionaryKeyType::Simple)
return Pipe(std::make_shared<DictionarySource>(DictionarySourceData(shared_from_this(), std::move(keys), column_names), max_block_size));
else
return Pipe(std::make_shared<DictionarySource>(DictionarySourceData(shared_from_this(), keys, column_names), max_block_size));
return Pipe(std::make_shared<DictionarySource>(DictionarySourceData(shared_from_this(), std::move(keys), column_names), max_block_size));
}
template <DictionaryKeyType dictionary_key_type, bool sparse>