(&self, batch: &RecordBatch)
| 85 | } |
| 86 | |
| 87 | fn evaluate(&self, batch: &RecordBatch) -> Result<ColumnarValue> { |
| 88 | let value = self.expr.evaluate(batch)?; |
| 89 | let options = CastOptions { |
| 90 | safe: true, |
| 91 | format_options: DEFAULT_FORMAT_OPTIONS, |
| 92 | }; |
| 93 | value.cast_to(&self.cast_type, Some(&options)) |
| 94 | } |
| 95 | |
| 96 | fn return_field(&self, input_schema: &Schema) -> Result<FieldRef> { |
| 97 | self.expr |