(
rows: &mut [(String, serde_json::Value)],
indices: &[usize],
alias: &str,
)
| 9 | use super::spec::WindowFuncSpec; |
| 10 | |
| 11 | pub(super) fn apply_row_number( |
| 12 | rows: &mut [(String, serde_json::Value)], |
| 13 | indices: &[usize], |
| 14 | alias: &str, |
| 15 | ) { |
| 16 | for (rank, &i) in indices.iter().enumerate() { |
| 17 | set_window_col(&mut rows[i].1, alias, serde_json::json!(rank + 1)); |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | pub(super) fn apply_rank( |
| 22 | rows: &mut [(String, serde_json::Value)], |
no test coverage detected