don't show merged stats until needed (#14311)

This commit is contained in:
Vadim Ogievetsky 2023-05-18 20:32:58 -07:00 committed by GitHub
parent e9fed1445f
commit 7f66fd049b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 7 deletions

View File

@ -604,13 +604,14 @@ ${title} uncompressed size: ${formatBytesCompact(
{dataProcessedShuffle(stage)}
</>
)}
{stages.hasCounterForStage(stage, 'segmentGenerationProgress') && (
<>
<div className="counter-spacer extend-left" />
{dataProcessedSegmentGeneration(stage, 'rowsMerged')}
{dataProcessedSegmentGeneration(stage, 'rowsPushed')}
</>
)}
{stages.hasCounterForStage(stage, 'segmentGenerationProgress') &&
stages.getTotalSegmentGenerationProgressForStage(stage, 'rowsMerged') > 0 && (
<>
<div className="counter-spacer extend-left" />
{dataProcessedSegmentGeneration(stage, 'rowsMerged')}
{dataProcessedSegmentGeneration(stage, 'rowsPushed')}
</>
)}
</>
);
},