fix 56 bit hash val leading to wrong ndv estimated.

This commit is contained in:
cqliang1995
2024-04-23 13:17:21 +00:00
committed by ob-robot
parent 90f04e6d73
commit dca11e26fd
4 changed files with 23 additions and 28 deletions

View File

@ -816,7 +816,7 @@ public:
SQL_ENG_LOG(WARN, "invalid null buckets", K(ret), K(buckets_));
}
for (int64_t i = 0; OB_SUCC(ret) && i < get_bucket_num(); i++) {
if (OB_FAIL(cb(buckets_->at(i).get_hash()))) {
if (buckets_->at(i).is_valid() && OB_FAIL(cb(buckets_->at(i).get_hash()))) {
SQL_ENG_LOG(WARN, "call back failed", K(ret));
}
}