Skip to content

Commit c23bfa1

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 c23bfa1

File tree

6 files changed

+911
-14
lines changed

6 files changed

+911
-14
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: 4 additions & 1 deletion
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 = { version = "0.4.42", optional = true }
4142

4243
[features]
4344
integration = [
@@ -47,8 +48,10 @@ integration = [
4748
"parquet",
4849
"arrow",
4950
"tokio-stream",
50-
"hyper-util"
51+
"hyper-util",
52+
"chrono"
5153
]
54+
5255
tpch = ["integration"]
5356

5457
[dev-dependencies]

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ mod distributed_physical_optimizer_rule;
88
mod errors;
99
mod execution_plans;
1010
mod flight_service;
11+
mod metrics;
1112

1213
mod protobuf;
1314
#[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)