()
| 120 | |
| 121 | #[test] |
| 122 | fn project_happy() { |
| 123 | let p = plan_one("SELECT * FROM ARRAY_PROJECT('g', ['qual', 'variant'])").unwrap(); |
| 124 | match p { |
| 125 | SqlPlan::ArrayProject { |
| 126 | name, |
| 127 | attr_projection, |
| 128 | } => { |
| 129 | assert_eq!(name, "g"); |
| 130 | assert_eq!(attr_projection, vec!["qual".to_string(), "variant".into()]); |
| 131 | } |
| 132 | other => panic!("expected ArrayProject, got {other:?}"), |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | #[test] |
| 137 | fn project_empty_rejected() { |
nothing calls this directly
no test coverage detected