Skip to content

Commit 9c860a7

Browse files
committed
fix: show scan bytes counters even when zero
1 parent 38f003d commit 9c860a7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/query/sql/src/executor/format.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -618,16 +618,15 @@ fn append_profile_info(
618618
+ prof.statistics[ProfileStatisticsName::ScanBytesFromLocal as usize]
619619
+ prof.statistics[ProfileStatisticsName::ScanBytesFromMemory as usize];
620620

621-
let has_scan_bytes = prof.statistics[ProfileStatisticsName::ScanBytes as usize] > 0;
622-
623621
for (stat_name, desc) in get_statistics_desc().iter() {
624622
let value = prof.statistics[desc.index];
625623
let always_show = matches!(
626624
stat_name,
627-
ProfileStatisticsName::ScanBytesFromRemote
625+
ProfileStatisticsName::ScanBytes
626+
| ProfileStatisticsName::ScanBytesFromRemote
628627
| ProfileStatisticsName::ScanBytesFromLocal
629628
| ProfileStatisticsName::ScanBytesFromMemory
630-
) && has_scan_bytes;
629+
);
631630

632631
if value == 0 && !always_show {
633632
continue;

0 commit comments

Comments
 (0)