remove useless hash function (#26955)

This commit is contained in:
wangbo
2023-11-15 20:37:21 +08:00
committed by GitHub
parent 718ba41cd1
commit 035e593b26
3 changed files with 1 additions and 172 deletions

View File

@ -94,37 +94,4 @@ TEST(HashFunctionTest, murmur_hash_3_64_test) {
};
}
TEST(HashFunctionTest, murmur_hash_2_test) {
std::string func_name = "murmurHash2_64";
{
InputTypeSet input_types = {TypeIndex::String};
DataSet data_set = {{{Null()}, Null()},
{{std::string("hello")}, (uint64_t)2191231550387646743ull}};
static_cast<void>(check_function<DataTypeUInt64, true>(func_name, input_types, data_set));
};
{
InputTypeSet input_types = {TypeIndex::String, TypeIndex::String};
DataSet data_set = {
{{std::string("hello"), std::string("world")}, (uint64_t)11978658642541747642ull},
{{std::string("hello"), Null()}, Null()}};
static_cast<void>(check_function<DataTypeUInt64, true>(func_name, input_types, data_set));
};
{
InputTypeSet input_types = {TypeIndex::String, TypeIndex::String, TypeIndex::String};
DataSet data_set = {{{std::string("hello"), std::string("world"), std::string("!")},
(uint64_t)1367324781703025231ull},
{{std::string("hello"), std::string("world"), Null()}, Null()}};
static_cast<void>(check_function<DataTypeUInt64, true>(func_name, input_types, data_set));
};
}
} // namespace doris::vectorized