Skip to content

Commit

Permalink
refactor: change le column name
Browse files Browse the repository at this point in the history
  • Loading branch information
sunng87 committed Sep 22, 2023
1 parent e92dcf6 commit 6e16e83
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/servers/src/otlp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ fn encode_sum(
Ok(())
}

const HISTOGRAM_LE_COLUMN: &str = "greptime_le";
const HISTOGRAM_LE_COLUMN: &str = "le";

/// Encode histogram data. This function returns 3 insert requests for 3 tables.
///
Expand Down
16 changes: 8 additions & 8 deletions tests-integration/src/otlp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ mod test {

let mut output = instance
.do_query(
"SELECT greptime_le, greptime_value FROM my_test_histo_bucket order by greptime_le",
"SELECT le, greptime_value FROM my_test_histo_bucket order by greptime_le",
ctx.clone(),
)
.await;
Expand All @@ -105,13 +105,13 @@ mod test {
assert_eq!(
recordbatches.pretty_print().unwrap(),
"\
+-------------+----------------+
| greptime_le | greptime_value |
+-------------+----------------+
| 1 | 1.0 |
| 5 | 3.0 |
| inf | 4.0 |
+-------------+----------------+",
+-----+----------------+
| le | greptime_value |
+-----+----------------+
| 1 | 1.0 |
| 5 | 3.0 |
| inf | 4.0 |
+-----+----------------+",
);

let mut output = instance
Expand Down

0 comments on commit 6e16e83

Please sign in to comment.