Skip to content

Commit

Permalink
feat: log parallelism
Browse files Browse the repository at this point in the history
  • Loading branch information
evenyag committed Dec 5, 2023
1 parent 71704bc commit 3fd0f2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mito2/src/read/seq_scan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ impl SeqScan {
// Creates a stream to poll the batch reader and convert batch into record batch.
let mapper = self.mapper.clone();
let cache_manager = self.cache_manager.clone();
let parallelism = self.parallelism.parallelism;
let stream = try_stream! {
let cache = cache_manager.as_ref().map(|cache| cache.as_ref());
while let Some(batch) =
Expand All @@ -157,8 +158,8 @@ impl SeqScan {
}

debug!(
"Seq scan finished, region_id: {:?}, metrics: {:?}, use_parallel: {}",
mapper.metadata().region_id, metrics, use_parallel
"Seq scan finished, region_id: {:?}, metrics: {:?}, use_parallel: {}, parallelism: {}",
mapper.metadata().region_id, metrics, use_parallel, parallelism,
);
// Update metrics.
READ_STAGE_ELAPSED.with_label_values(&["total"]).observe(metrics.scan_cost.as_secs_f64());
Expand Down

0 comments on commit 3fd0f2e

Please sign in to comment.