[CP] fix label security bug

This commit is contained in:
wjhh2008
2023-08-07 03:48:20 +00:00
committed by ob-robot
parent de08581e98
commit f6de91c495
3 changed files with 17 additions and 2 deletions

View File

@ -431,6 +431,11 @@ double FilterCompare::get_selectivity(ObRawExpr *expr)
{
bool found = false;
double selectivity = 1;
if (OB_NOT_NULL(expr) && T_FUN_LABEL_SE_LABEL_VALUE_CMP_LE == expr->get_expr_type()) {
// security filter should be calc firstly
found = true;
selectivity = -1.0;
}
for (int64_t i = 0; !found && i < predicate_selectivities_.count(); i++) {
if (predicate_selectivities_.at(i).expr_ == expr) {
found = true;