mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-24 10:40:49 +00:00
Update unit test.
This commit is contained in:
parent
7582f6628c
commit
2e2272785a
@ -314,7 +314,9 @@ TEST(WeakHash32, ColumnString_3)
|
||||
WeakHash32 hash(col->size());
|
||||
col->updateWeakHash32(hash);
|
||||
|
||||
checkColumn(hash.getData(), data, [&](size_t row) { return col->getDataAt(row).toString(); });
|
||||
/// Now there is single collision between 'k' * 544 and 'q' * 2512 (which is calculated twice)
|
||||
size_t allowed_collisions = 4;
|
||||
checkColumn(hash.getData(), data, [&](size_t row) { return col->getDataAt(row).toString(); }, allowed_collisions);
|
||||
}
|
||||
|
||||
TEST(WeakHash32, ColumnFixedString)
|
||||
@ -402,7 +404,7 @@ TEST(WeakHash32, ColumnArray)
|
||||
|
||||
TEST(WeakHash32, ColumnArrayArray)
|
||||
{
|
||||
size_t max_size = 3000;
|
||||
size_t max_size = 1000;
|
||||
auto val = ColumnUInt32::create();
|
||||
auto off = ColumnUInt64::create();
|
||||
auto off2 = ColumnUInt64::create();
|
||||
@ -426,7 +428,7 @@ TEST(WeakHash32, ColumnArrayArray)
|
||||
for (int _i [[maybe_unused]] : {1, 2})
|
||||
{
|
||||
UInt32 cur = 1;
|
||||
for (int64_t i = 0; i < 65536; ++i)
|
||||
for (int64_t i = 0; i < 1000; ++i)
|
||||
{
|
||||
eq_data.push_back(i);
|
||||
size_t s = (i % max_size) + 1;
|
||||
|
Loading…
Reference in New Issue
Block a user