mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Try to fix tests
This commit is contained in:
parent
77e64935e1
commit
bba04db0b4
@ -464,8 +464,8 @@ bool StorageInMemoryMetadata::hasSelectQuery() const
|
||||
|
||||
namespace
|
||||
{
|
||||
using NamesAndTypesMap = HashMapWithSavedHash<std::string_view, const IDataType *>;
|
||||
using UniqueStrings = HashSetWithSavedHash<std::string_view>;
|
||||
using NamesAndTypesMap = HashMapWithSavedHash<StringRef, const IDataType *, StringRefHash>;
|
||||
using UniqueStrings = HashSetWithSavedHash<StringRef, StringRefHash>;
|
||||
|
||||
NamesAndTypesMap getColumnsMap(const NamesAndTypesList & columns)
|
||||
{
|
||||
|
@ -179,7 +179,7 @@ ColumnsDescription StorageSnapshot::getDescriptionForColumns(const Names & colum
|
||||
|
||||
namespace
|
||||
{
|
||||
using DenseHashSet = google::dense_hash_set<std::string_view>;
|
||||
using DenseHashSet = google::dense_hash_set<StringRef, StringRefHash>;
|
||||
}
|
||||
|
||||
void StorageSnapshot::check(const Names & column_names) const
|
||||
@ -195,7 +195,7 @@ void StorageSnapshot::check(const Names & column_names) const
|
||||
}
|
||||
|
||||
DenseHashSet unique_names;
|
||||
unique_names.set_empty_key(std::string_view());
|
||||
unique_names.set_empty_key(StringRef());
|
||||
|
||||
for (const auto & name : column_names)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user