Skip to content

Commit

Permalink
Move FileSinkExec::metrics to the correct place (apache#239) (apache#…
Browse files Browse the repository at this point in the history
  • Loading branch information
joroKr21 authored and findepi committed Jul 16, 2024
1 parent 4c970dd commit e5a0a7b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions datafusion/physical-plan/src/insert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,6 @@ impl DataSinkExec {
&self.sort_order
}

/// Returns the metrics of the underlying [DataSink]
pub fn metrics(&self) -> Option<MetricsSet> {
self.sink.metrics()
}

fn create_schema(
input: &Arc<dyn ExecutionPlan>,
schema: SchemaRef,
Expand Down Expand Up @@ -289,6 +284,11 @@ impl ExecutionPlan for DataSinkExec {
stream,
)))
}

/// Returns the metrics of the underlying [DataSink]
fn metrics(&self) -> Option<MetricsSet> {
self.sink.metrics()
}
}

/// Create a output record batch with a count
Expand Down

0 comments on commit e5a0a7b

Please sign in to comment.