chore: remove table scan timer

This commit is contained in:
shuiyisong
2023-06-25 17:46:54 +08:00
parent c2c5801156
commit a57cd604c1

View File

@@ -116,6 +116,7 @@ impl Stream for DfRecordBatchStreamAdapter {
pub struct RecordBatchStreamAdapter {
schema: SchemaRef,
stream: DfSendableRecordBatchStream,
#[allow(dead_code)]
metrics: Option<BaselineMetrics>,
}
@@ -154,12 +155,12 @@ impl Stream for RecordBatchStreamAdapter {
type Item = Result<RecordBatch>;
fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
let timer = self
.metrics
.as_ref()
.map(|m| m.elapsed_compute().clone())
.unwrap_or_default();
let _guard = timer.timer();
// let timer = self
// .metrics
// .as_ref()
// .map(|m| m.elapsed_compute().clone())
// .unwrap_or_default();
// let _guard = timer.timer();
match Pin::new(&mut self.stream).poll_next(cx) {
Poll::Pending => Poll::Pending,
Poll::Ready(Some(df_record_batch)) => {