This function serializes our state to `ScalarValue`, which DataFusion uses to pass this state between execution stages. Note that this can be arbitrary data.
(&mut self)
| 74 | // to pass this state between execution stages. |
| 75 | // Note that this can be arbitrary data. |
| 76 | fn state(&mut self) -> Result<Vec<ScalarValue>> { |
| 77 | Ok(vec![ |
| 78 | ScalarValue::from(self.prod), |
| 79 | ScalarValue::from(self.n), |
| 80 | ]) |
| 81 | } |
| 82 | |
| 83 | // DataFusion expects this function to return the final value of this aggregator. |
| 84 | // in this case, this is the formula of the geometric mean |
no outgoing calls
no test coverage detected