MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / columnar_count

Function columnar_count

nodedb-test-support/src/tx_batch_helpers.rs:234–253  ·  view source on GitHub ↗
(collection: &str)

Source from the content-addressed store, hash-verified

232}
233
234pub 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
255pub fn timeseries_ingest(collection: &str, ilp: &str) -> PhysicalPlan {
256 PhysicalPlan::Timeseries(TimeseriesOp::Ingest {

Callers 1

assert_columnar_countFunction · 0.85

Calls 1

QueryClass · 0.85

Tested by

no test coverage detected