Skip to content

Commit

Permalink
chore: bump promql-parser to v0.4.1 and use to_string() for EvalStmt (
Browse files Browse the repository at this point in the history
#4832)

chore: bump promql-parser to v0.4.1 and use to_string() for EvalStmt
  • Loading branch information
zyy17 authored Oct 15, 2024
1 parent bb8b54b commit 972c244
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ parquet = { version = "51.0.0", default-features = false, features = ["arrow", "
paste = "1.0"
pin-project = "1.0"
prometheus = { version = "0.13.3", features = ["process"] }
promql-parser = { version = "0.4" }
promql-parser = { version = "0.4.1" }
prost = "0.12"
raft-engine = { version = "0.4.1", default-features = false }
rand = "0.8"
Expand Down
3 changes: 1 addition & 2 deletions src/query/src/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ impl SlowQueryTimer {
slow!(
cost = elapsed.as_millis() as u64,
threshold = threshold.as_millis() as u64,
// TODO(zyy17): It's better to implement Display for EvalStmt for pretty print.
promql = format!("{:?}", stmt)
promql = stmt.to_string()
);
}
}
Expand Down

0 comments on commit 972c244

Please sign in to comment.