Skip to content

Commit

Permalink
[CBRD-25708] call partition_supports_pruning_op_for_function() for PR…
Browse files Browse the repository at this point in the history
…ED_EXPR containing ALL/SOME
  • Loading branch information
Hamkua committed Dec 11, 2024
1 parent b6aa622 commit dc69f1e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/query/partition.c
Original file line number Diff line number Diff line change
Expand Up @@ -1976,9 +1976,12 @@ partition_match_pred_expr (PRUNING_CONTEXT * pinfo, const PRED_EXPR * pr, PRUNIN
{
status = partition_prune (pinfo, list, op, pruned);
}
else if (partition_do_regu_variables_contain (pinfo, regu, part_expr))
else if (partition_supports_pruning_op_for_function (op, part_expr))
{
status = partition_prune_arith (pinfo, regu, list, part_expr, op, pruned);
if (partition_do_regu_variables_contain (pinfo, regu, part_expr))
{
status = partition_prune_arith (pinfo, regu, list, part_expr, op, pruned);
}
}
}
break;
Expand Down

0 comments on commit dc69f1e

Please sign in to comment.