Skip to content

Commit 985026b

Browse files
metrics: add metrics module and protos
This change adds a metrics module containing proto definitions to mirror datafusion metrics. These will be used for EXPLAIN ANALYZE. It also adds roundtrip serialization tests. Informs #123.
1 parent f921a87 commit 985026b

File tree

5 files changed

+929
-13
lines changed

5 files changed

+929
-13
lines changed

Cargo.lock

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ parquet = { version = "55.2.0", optional = true }
3838
arrow = { version = "55.2.0", optional = true }
3939
tokio-stream = { version = "0.1.17", optional = true }
4040
hyper-util = { version = "0.1.16", optional = true }
41+
chrono = "0.4.42"
4142

4243
[features]
4344
integration = [

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ mod distributed_physical_optimizer_rule;
88
mod errors;
99
mod execution_plans;
1010
mod flight_service;
11+
mod metrics;
12+
13+
pub use metrics::proto::*;
1114

1215
mod protobuf;
1316
#[cfg(any(feature = "integration", test))]

src/metrics/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pub(crate) mod proto;

0 commit comments

Comments
 (0)