adjust the online gather stats to use murmur hash algorithm
This commit is contained in:
parent
4407bf5d7d
commit
c233e93904
@ -190,18 +190,14 @@ int ObOptOSGColumnStat::update_column_stat_info(const ObDatum *datum,
|
||||
ObObj tmp_obj;
|
||||
if (OB_FAIL(datum->to_obj(tmp_obj, meta))) {
|
||||
LOG_WARN("failed to to obj");
|
||||
} else if (tmp_obj.is_string_type()) {
|
||||
hash_value = tmp_obj.varchar_hash(tmp_obj.get_collation_type(), hash_value);
|
||||
} else if (OB_FAIL(tmp_obj.hash(hash_value, hash_value))) {
|
||||
} else if (OB_FAIL(tmp_obj.hash_murmur(hash_value, hash_value))) {
|
||||
LOG_WARN("fail to do hash", K(ret), K(tmp_obj));
|
||||
}
|
||||
if (OB_FAIL(ret)) {
|
||||
} else if (OB_UNLIKELY(col_stat_->get_llc_bitmap() == NULL || col_stat_->get_llc_bitmap_size() == 0)) {
|
||||
ret = OB_INVALID_ARGUMENT;
|
||||
LOG_WARN("get invalid llc_bitmap", K(ret));
|
||||
} else if (OB_FAIL(ObAggregateProcessor::llc_add_value(hash_value,
|
||||
col_stat_->get_llc_bitmap(),
|
||||
col_stat_->get_llc_bitmap_size()))) {
|
||||
col_stat_->get_llc_bitmap(),
|
||||
col_stat_->get_llc_bitmap_size()))) {
|
||||
LOG_WARN("fail to calc llc", K(ret));
|
||||
} else if (OB_FAIL(inner_merge_min(*datum, meta, cmp_func))) {
|
||||
LOG_WARN("failed to inner merge min val");
|
||||
|
Loading…
x
Reference in New Issue
Block a user