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

Method evaluate

datafusion/physical-expr/src/expressions/cast.rs:246–249  ·  view source on GitHub ↗
(&self, batch: &RecordBatch)

Source from the content-addressed store, hash-verified

244 }
245
246 fn evaluate(&self, batch: &RecordBatch) -> Result<ColumnarValue> {
247 let value = self.expr.evaluate(batch)?;
248 value.cast_to(self.cast_type(), Some(&self.cast_options))
249 }
250
251 fn return_field(&self, input_schema: &Schema) -> Result<FieldRef> {
252 self.resolved_target_field(input_schema)

Callers 5

cast_struct_arrayFunction · 0.45
test_cast_decimalFunction · 0.45

Calls 2

cast_toMethod · 0.45
cast_typeMethod · 0.45