Skip to content

Commit d930d69

Browse files
shangm2NikhilCollooru
authored andcommitted
Convert DataSize for UI
1 parent 7537e2a commit d930d69

File tree

6 files changed

+307
-314
lines changed

6 files changed

+307
-314
lines changed

presto-ui/src/components/LivePlan.jsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -98,18 +98,18 @@ export class StageStatistics extends React.Component<StageStatisticsProps, Stage
9898
{stage.state}
9999
<hr/>
100100
CPU: {stats.totalCpuTime}<br />
101-
Buffered: {stats.bufferedDataSize}<br />
101+
Buffered: {stats.bufferedDataSizeInBytes}<br />
102102
{stats.fullyBlocked ?
103103
<div style={{color: '#ff0000'}}>Blocked: {stats.totalBlockedTime} </div> :
104104
<div>Blocked: {stats.totalBlockedTime} </div>
105105
}
106-
Memory: {stats.userMemoryReservation}
106+
Memory: {stats.userMemoryReservationInBytes}
107107
<br/>
108108
Splits: {"Q:" + stats.queuedDrivers + ", R:" + stats.runningDrivers + ", F:" + stats.completedDrivers}
109109
<br/>
110110
Lifespans: {stats.completedLifespans + " / " + stats.totalLifespans}
111111
<hr/>
112-
Input: {stats.rawInputDataSize + " / " + formatRows(stats.rawInputPositions)}
112+
Input: {stats.rawInputDataSizeInBytes + " / " + formatRows(stats.rawInputPositions)}
113113
</div>
114114
</div>
115115
);
@@ -250,7 +250,7 @@ export class LivePlan extends React.Component<LivePlanProps, LivePlanState> {
250250
class: "plan-edge",
251251
style: "stroke-width: 4px",
252252
arrowheadClass: "plan-arrowhead",
253-
label: sourceStats.outputDataSize + " / " + formatRows(sourceStats.outputPositions),
253+
label: sourceStats.outputDataSizeInBytes + " / " + formatRows(sourceStats.outputPositions),
254254
labelStyle: "color: #fff; font-weight: bold; font-size: 24px;",
255255
labelType: "html",
256256
});

0 commit comments

Comments
 (0)