datafusion_physical_expr::intervals::test_utils

Function gen_conjunctive_temporal_expr

Source
pub fn gen_conjunctive_temporal_expr(
    left_col: Arc<dyn PhysicalExpr>,
    right_col: Arc<dyn PhysicalExpr>,
    op_1: Operator,
    op_2: Operator,
    op_3: Operator,
    op_4: Operator,
    a: ScalarValue,
    b: ScalarValue,
    c: ScalarValue,
    d: ScalarValue,
    schema: &Schema,
) -> Result<Arc<dyn PhysicalExpr>, DataFusionError>
Expand description

This test function generates a conjunctive statement with two scalar values with the following form: left_col (op_1) a > right_col (op_2) b AND left_col (op_3) c < right_col (op_4) d