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

Function make_request

nodedb/src/data/executor/dispatch/array/tests_dispatch.rs:35–52  ·  view source on GitHub ↗
(plan: PhysicalPlan, id: u64)

Source from the content-addressed store, hash-verified

33use nodedb_physical::physical_plan::{ArrayBinaryOp, ArrayOp, ArrayReducer};
34
35fn make_request(plan: PhysicalPlan, id: u64) -> Request {
36 Request {
37 request_id: RequestId::new(id),
38 tenant_id: TenantId::new(1),
39 database_id: DatabaseId::DEFAULT,
40 vshard_id: VShardId::new(0),
41 plan,
42 deadline: Instant::now() + Duration::from_secs(5),
43 priority: Priority::Normal,
44 trace_id: TraceId::ZERO,
45 consistency: ReadConsistency::Strong,
46 idempotency_key: None,
47 event_source: crate::event::EventSource::User,
48 user_roles: Vec::new(),
49 user_id: None,
50 statement_digest: None,
51 }
52}
53
54fn schema_2d_f64(name: &str) -> ArraySchema {
55 ArraySchemaBuilder::new(name)

Callers 1

send_planMethod · 0.70

Calls 1

nowFunction · 0.85

Tested by

no test coverage detected