Try to fix tests

This commit is contained in:
Robert Schulze 2022-08-21 09:23:37 +00:00
parent 77e64935e1
commit bba04db0b4
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A
2 changed files with 4 additions and 4 deletions

View File

@ -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)
{

View File

@ -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)
{