Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/metrics/proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,10 +383,7 @@ pub fn metric_proto_to_df(metric: MetricProto) -> Result<Arc<Metric>, DataFusion
Some(MetricValueProto::StartTimestamp(start_ts)) => match start_ts.value {
Some(value) => {
let timestamp = Timestamp::new();
#[cfg(feature = "integration")]
timestamp.set(DateTime::from_timestamp_nanos(value));
#[cfg(not(feature = "integration"))]
{ /* DateTime not available without integration feature */ }
Ok(Arc::new(Metric::new_with_labels(
MetricValue::StartTimestamp(timestamp),
partition,
Expand All @@ -402,10 +399,7 @@ pub fn metric_proto_to_df(metric: MetricProto) -> Result<Arc<Metric>, DataFusion
Some(MetricValueProto::EndTimestamp(end_ts)) => match end_ts.value {
Some(value) => {
let timestamp = Timestamp::new();
#[cfg(feature = "integration")]
timestamp.set(DateTime::from_timestamp_nanos(value));
#[cfg(not(feature = "integration"))]
{ /* DateTime not available without integration feature */ }
Ok(Arc::new(Metric::new_with_labels(
MetricValue::EndTimestamp(timestamp),
partition,
Expand Down