@@ -28,7 +28,6 @@ import {
28
28
getFirstParameter ,
29
29
getTaskNumber ,
30
30
isQueryEnded ,
31
- parseDataSize ,
32
31
parseDuration
33
32
} from "../utils" ;
34
33
import { initializeGraph , initializeSvg } from "../d3utils" ;
@@ -45,7 +44,7 @@ class OperatorSummary extends React.Component {
45
44
const totalWallTime = parseDuration ( operator . addInputWall ) + parseDuration ( operator . getOutputWall ) + parseDuration ( operator . finishWall ) + parseDuration ( operator . blockedWall ) ;
46
45
47
46
const rowInputRate = totalWallTime === 0 ? 0 : ( 1.0 * operator . inputPositions ) / ( totalWallTime / 1000.0 ) ;
48
- const byteInputRate = totalWallTime === 0 ? 0 : ( 1.0 * parseDataSize ( operator . inputDataSize ) ) / ( totalWallTime / 1000.0 ) ;
47
+ const byteInputRate = totalWallTime === 0 ? 0 : ( 1.0 * operator . inputDataSizeInBytes ) / ( totalWallTime / 1000.0 ) ;
49
48
50
49
return (
51
50
< div className = "header-data" >
@@ -64,7 +63,7 @@ class OperatorSummary extends React.Component {
64
63
Output
65
64
</ td >
66
65
< td >
67
- { formatCount ( operator . outputPositions ) + " rows (" + operator . outputDataSize + ")" }
66
+ { formatCount ( operator . outputPositions ) + " rows (" + formatDataSize ( operator . outputDataSizeInBytes ) + ")" }
68
67
</ td >
69
68
</ tr >
70
69
< tr >
@@ -96,7 +95,7 @@ class OperatorSummary extends React.Component {
96
95
Input
97
96
</ td >
98
97
< td >
99
- { formatCount ( operator . inputPositions ) + " rows (" + operator . inputDataSize + ")" }
98
+ { formatCount ( operator . inputPositions ) + " rows (" + formatDataSize ( operator . inputDataSizeInBytes ) + ")" }
100
99
</ td >
101
100
</ tr >
102
101
</ tbody >
@@ -162,8 +161,8 @@ function OperatorDetail({ index, operator, tasks }) {
162
161
} ,
163
162
{
164
163
name : "Input Data Size" ,
165
- id : "inputDataSize " ,
166
- supplier : operator => parseDataSize ( operator . inputDataSize ) ,
164
+ id : "inputDataSizeInBytes " ,
165
+ supplier : operator => operator . inputDataSizeInBytes ,
167
166
renderer : formatDataSize
168
167
} ,
169
168
{
@@ -174,8 +173,8 @@ function OperatorDetail({ index, operator, tasks }) {
174
173
} ,
175
174
{
176
175
name : "Output Data Size" ,
177
- id : "outputDataSize " ,
178
- supplier : operator => parseDataSize ( operator . outputDataSize ) ,
176
+ id : "outputDataSizeInBytes " ,
177
+ supplier : operator => operator . outputDataSizeInBytes ,
179
178
renderer : formatDataSize
180
179
} ,
181
180
] ;
@@ -206,10 +205,10 @@ function OperatorDetail({ index, operator, tasks }) {
206
205
const totalWallTime = getTotalWallTime ( operator ) ;
207
206
208
207
const rowInputRate = totalWallTime === 0 ? 0 : ( 1.0 * operator . inputPositions ) / totalWallTime ;
209
- const byteInputRate = totalWallTime === 0 ? 0 : ( 1.0 * parseDataSize ( operator . inputDataSize ) ) / ( totalWallTime / 1000.0 ) ;
208
+ const byteInputRate = totalWallTime === 0 ? 0 : ( 1.0 * operator . inputDataSizeInBytes ) / ( totalWallTime / 1000.0 ) ;
210
209
211
210
const rowOutputRate = totalWallTime === 0 ? 0 : ( 1.0 * operator . outputPositions ) / totalWallTime ;
212
- const byteOutputRate = totalWallTime === 0 ? 0 : ( 1.0 * parseDataSize ( operator . outputDataSize ) ) / ( totalWallTime / 1000.0 ) ;
211
+ const byteOutputRate = totalWallTime === 0 ? 0 : ( 1.0 * operator . outputDataSizeInBytes ) / ( totalWallTime / 1000.0 ) ;
213
212
214
213
return (
215
214
< div className = "col-12 container mx-2" >
@@ -232,7 +231,7 @@ function OperatorDetail({ index, operator, tasks }) {
232
231
Input
233
232
</ td >
234
233
< td >
235
- { formatCount ( operator . inputPositions ) + " rows (" + operator . inputDataSize + ")" }
234
+ { formatCount ( operator . inputPositions ) + " rows (" + formatDataSize ( operator . inputDataSizeInBytes ) + ")" }
236
235
</ td >
237
236
</ tr >
238
237
< tr >
@@ -248,7 +247,7 @@ function OperatorDetail({ index, operator, tasks }) {
248
247
Output
249
248
</ td >
250
249
< td >
251
- { formatCount ( operator . outputPositions ) + " rows (" + operator . outputDataSize + ")" }
250
+ { formatCount ( operator . outputPositions ) + " rows (" + formatDataSize ( operator . outputDataSizeInBytes ) + ")" }
252
251
</ td >
253
252
</ tr >
254
253
< tr >
@@ -649,4 +648,4 @@ export class StageDetail extends React.Component {
649
648
}
650
649
}
651
650
652
- export default StageDetail ;
651
+ export default StageDetail ;
0 commit comments