@@ -28,7 +28,6 @@ import {
2828 getFirstParameter ,
2929 getTaskNumber ,
3030 isQueryEnded ,
31- parseDataSize ,
3231 parseDuration
3332} from "../utils" ;
3433import { initializeGraph , initializeSvg } from "../d3utils" ;
@@ -45,7 +44,7 @@ class OperatorSummary extends React.Component {
4544 const totalWallTime = parseDuration ( operator . addInputWall ) + parseDuration ( operator . getOutputWall ) + parseDuration ( operator . finishWall ) + parseDuration ( operator . blockedWall ) ;
4645
4746 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 ) ;
4948
5049 return (
5150 < div className = "header-data" >
@@ -64,7 +63,7 @@ class OperatorSummary extends React.Component {
6463 Output
6564 </ td >
6665 < td >
67- { formatCount ( operator . outputPositions ) + " rows (" + operator . outputDataSize + ")" }
66+ { formatCount ( operator . outputPositions ) + " rows (" + formatDataSize ( operator . outputDataSizeInBytes ) + ")" }
6867 </ td >
6968 </ tr >
7069 < tr >
@@ -96,7 +95,7 @@ class OperatorSummary extends React.Component {
9695 Input
9796 </ td >
9897 < td >
99- { formatCount ( operator . inputPositions ) + " rows (" + operator . inputDataSize + ")" }
98+ { formatCount ( operator . inputPositions ) + " rows (" + formatDataSize ( operator . inputDataSizeInBytes ) + ")" }
10099 </ td >
101100 </ tr >
102101 </ tbody >
@@ -162,8 +161,8 @@ function OperatorDetail({ index, operator, tasks }) {
162161 } ,
163162 {
164163 name : "Input Data Size" ,
165- id : "inputDataSize " ,
166- supplier : operator => parseDataSize ( operator . inputDataSize ) ,
164+ id : "inputDataSizeInBytes " ,
165+ supplier : operator => operator . inputDataSizeInBytes ,
167166 renderer : formatDataSize
168167 } ,
169168 {
@@ -174,8 +173,8 @@ function OperatorDetail({ index, operator, tasks }) {
174173 } ,
175174 {
176175 name : "Output Data Size" ,
177- id : "outputDataSize " ,
178- supplier : operator => parseDataSize ( operator . outputDataSize ) ,
176+ id : "outputDataSizeInBytes " ,
177+ supplier : operator => operator . outputDataSizeInBytes ,
179178 renderer : formatDataSize
180179 } ,
181180 ] ;
@@ -206,10 +205,10 @@ function OperatorDetail({ index, operator, tasks }) {
206205 const totalWallTime = getTotalWallTime ( operator ) ;
207206
208207 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 ) ;
210209
211210 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 ) ;
213212
214213 return (
215214 < div className = "col-12 container mx-2" >
@@ -232,7 +231,7 @@ function OperatorDetail({ index, operator, tasks }) {
232231 Input
233232 </ td >
234233 < td >
235- { formatCount ( operator . inputPositions ) + " rows (" + operator . inputDataSize + ")" }
234+ { formatCount ( operator . inputPositions ) + " rows (" + formatDataSize ( operator . inputDataSizeInBytes ) + ")" }
236235 </ td >
237236 </ tr >
238237 < tr >
@@ -248,7 +247,7 @@ function OperatorDetail({ index, operator, tasks }) {
248247 Output
249248 </ td >
250249 < td >
251- { formatCount ( operator . outputPositions ) + " rows (" + operator . outputDataSize + ")" }
250+ { formatCount ( operator . outputPositions ) + " rows (" + formatDataSize ( operator . outputDataSizeInBytes ) + ")" }
252251 </ td >
253252 </ tr >
254253 < tr >
@@ -649,4 +648,4 @@ export class StageDetail extends React.Component {
649648 }
650649}
651650
652- export default StageDetail ;
651+ export default StageDetail ;
0 commit comments