Skip to main content

split_partition_expr

Function split_partition_expr 

Source
pub fn split_partition_expr(
    base_expr: PartitionExpr,
    split_expr: PartitionExpr,
) -> Result<(PartitionExpr, PartitionExpr), ExprSplitDegradeReason>
Expand description

Splits one partition expression with a split predicate.

Returns (left, right) on success, where:

  • left = R AND S
  • right = R AND NOT(S)

Supported shape:

  • split_expr must be a single atomic range predicate (<, <=, >, >=).
  • base_expr must be a pure AND tree of atomic range predicates, possibly across unrelated columns.

Returns ExprSplitDegradeReason when this cannot safely process the shape/type.