MCPcopy Create free account
hub / github.com/apache/datafusion / binary

Function binary

datafusion/physical-expr/src/expressions/binary.rs:973–980  ·  view source on GitHub ↗

Create a binary expression whose arguments are correctly coerced. This function errors if it is not possible to coerce the arguments to computational types supported by the operator.

(
    lhs: Arc<dyn PhysicalExpr>,
    op: Operator,
    rhs: Arc<dyn PhysicalExpr>,
    _input_schema: &Schema,
)

Source from the content-addressed store, hash-verified

971/// This function errors if it is not possible to coerce the arguments
972/// to computational types supported by the operator.
973pub fn binary(
974 lhs: Arc<dyn PhysicalExpr>,
975 op: Operator,
976 rhs: Arc<dyn PhysicalExpr>,
977 _input_schema: &Schema,
978) -> Result<Arc<dyn PhysicalExpr>> {
979 Ok(Arc::new(BinaryExpr::new(lhs, op, rhs)))
980}
981
982/// Create a similar to expression
983pub fn similar_to(

Callers 15

invoke_with_argsMethod · 0.85
create_physical_exprFunction · 0.85
binary_exprFunction · 0.85
test_build_dagFunction · 0.85
binary_opFunction · 0.85
binary_comparisonFunction · 0.85
binary_nestedFunction · 0.85
relatively_deeply_nestedFunction · 0.85
case_without_exprFunction · 0.85

Calls 1

newFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…