(spec: &WindowFuncSpec, idx: usize)
| 198 | } |
| 199 | |
| 200 | fn default_arg_value(spec: &WindowFuncSpec, idx: usize) -> Value { |
| 201 | spec.args |
| 202 | .get(idx) |
| 203 | .and_then(|e| match e { |
| 204 | SqlExpr::Literal(v) => Some(v.clone()), |
| 205 | _ => None, |
| 206 | }) |
| 207 | .unwrap_or(Value::Null) |
| 208 | } |
| 209 | |
| 210 | // ── Cell write helper (pub(super) for value_agg) ────────────────────────────── |
| 211 |
no test coverage detected