fn rewrite_expr_to_prunable(
column_expr: &PhysicalExprRef,
op: Operator,
scalar_expr: &PhysicalExprRef,
schema: DFSchema,
) -> Result<(PhysicalExprRef, Operator, PhysicalExprRef)>Expand description
This function is designed to rewrite the column_expr to ensure the column_expr is monotonically increasing.
For example,
col > 10-col > 10should be rewritten tocol < -10!col = truewould be rewritten tocol = !trueabs(a - 10) > 0not supportedcast(can_prunable_expr) > 10try_cast(can_prunable_expr) > 10
More rewrite rules are still in progress.