(collection: &str)
| 232 | } |
| 233 | |
| 234 | pub fn columnar_count(collection: &str) -> PhysicalPlan { |
| 235 | PhysicalPlan::Query(QueryOp::Aggregate { |
| 236 | collection: collection.into(), |
| 237 | group_by: Vec::new(), |
| 238 | aggregates: vec![AggregateSpec { |
| 239 | function: "count".into(), |
| 240 | alias: "count(*)".into(), |
| 241 | user_alias: None, |
| 242 | field: "*".into(), |
| 243 | expr: None, |
| 244 | }], |
| 245 | filters: Vec::new(), |
| 246 | having: Vec::new(), |
| 247 | limit: 10, |
| 248 | sub_group_by: Vec::new(), |
| 249 | sub_aggregates: Vec::new(), |
| 250 | grouping_sets: Vec::new(), |
| 251 | sort_keys: Vec::new(), |
| 252 | }) |
| 253 | } |
| 254 | |
| 255 | pub fn timeseries_ingest(collection: &str, ilp: &str) -> PhysicalPlan { |
| 256 | PhysicalPlan::Timeseries(TimeseriesOp::Ingest { |
no test coverage detected