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

Function coerce

datafusion/optimizer/src/utils.rs:189–192  ·  view source on GitHub ↗
(expr: Expr, schema: &DFSchema)

Source from the content-addressed store, hash-verified

187}
188
189fn coerce(expr: Expr, schema: &DFSchema) -> Result<Expr> {
190 let mut expr_rewrite = TypeCoercionRewriter { schema };
191 expr.rewrite(&mut expr_rewrite).data()
192}
193
194#[cfg(test)]
195mod tests {

Callers 1

Calls 2

dataMethod · 0.45
rewriteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…