lance_datafusion::logical_expr

Function coerce_expr

Source
pub fn coerce_expr(expr: &Expr, dtype: &DataType) -> Result<Expr>
Expand description

Coerce expression of literals to column type.

Parameters

  • expr: a datafusion logical expression
  • dtype: a lance data type