Skip to content

Commit

Permalink
chore: switch to compact greptimedb rust client
Browse files Browse the repository at this point in the history
  • Loading branch information
sunng87 committed May 9, 2023
1 parent 3c2cd6f commit d258fac
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 21 deletions.
31 changes: 31 additions & 0 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
Expand Up @@ -229,7 +229,7 @@ hex = { version = "0.4.3", default-features = false, optional = true }
sha2 = { version = "0.10.6", default-features = false, optional = true }

# Greptime
greptimedb-client = { git = "https://github.com/GreptimeTeam/greptimedb.git", rev = "b5e5f8e555065da0ba1d3f13b6b76fad59cb4017", package = "client", optional = true }
greptimedb-client = { git = "https://github.com/GreptimeTeam/greptimedb-client-rust.git", rev = "2b5d575fd4aaff2955b20e59e752e1eba71c4b75", package = "greptimedb-client-rust", optional = true }

# VRL Lang
vrl = { package = "vrl", git = "https://github.com/vectordotdev/vrl", rev = "v0.2.0" }
Expand Down
19 changes: 0 additions & 19 deletions sample.toml

This file was deleted.

1 change: 0 additions & 1 deletion src/sinks/greptimedb/client.rs
Expand Up @@ -267,7 +267,6 @@ fn encode_histogram(buckets: &[Bucket], columns: &mut Vec<Column>) {
fn encode_quantiles(quantiles: &[Quantile], columns: &mut Vec<Column>) {
for quantile in quantiles {
let column_name = format!("p{:02}", quantile.quantile * 100f64);
dbg!(&column_name);
columns.push(f64_field(&column_name, quantile.value));
}
}
Expand Down

0 comments on commit d258fac

Please sign in to comment.