Revise qual selectivity

This commit is contained in:
xianyu-w
2024-01-23 14:42:47 +00:00
committed by ob-robot
parent 65184014c4
commit a0c157ebd7
2 changed files with 4 additions and 2 deletions

View File

@ -1725,7 +1725,7 @@ int ObBoolOpSelEstimator::get_sel(const OptTableMetas &table_metas,
} else {
// not op.
// if can calculate null_sel, sel = 1.0 - null_sel - op_sel
selectivity = 1.0 - null_sel - tmp_selectivity;
selectivity = ObOptSelectivity::revise_between_0_1(1.0 - null_sel - tmp_selectivity);
}
} else {
// for other condition, it's is too hard to consider null_sel, so ignore it.