[fix](planner) fix is-null predicate in where statement cannot be pushed down to the storage layer (#9035)

This commit is contained in:
shee
2022-04-18 04:35:02 -07:00
committed by GitHub
parent 681f960257
commit f3dce9a6c1

View File

@ -1212,7 +1212,7 @@ Status OlapScanNode::normalize_noneq_binary_predicate(SlotDescriptor* slot,
std::string is_null_str;
// 1. dispose the where pred "A is null" and "A is not null"
if (root_expr->is_null_scalar_function(is_null_str) &&
normalize_is_null_predicate(root_expr, slot, is_null_str, range)) {
normalize_is_null_predicate(root_expr->get_child(0), slot, is_null_str, range)) {
// if column is key column should push down conjunct storage engine
if (is_key_column(slot->col_name())) {
filter_conjuncts_index.emplace_back(conj_idx);