Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
englefly committed Sep 4, 2024
1 parent 5753240 commit 60722b1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ public double dataSizeFactor(List<Slot> slots) {

@Override
public String toString() {
DecimalFormat format = new DecimalFormat("#,###.##");
StringBuilder builder = new StringBuilder();
if (Double.isNaN(rowCount)) {
builder.append("NaN");
Expand All @@ -203,14 +204,13 @@ public String toString() {
} else if (Double.NEGATIVE_INFINITY == rowCount) {
builder.append("-Infinite");
} else {
DecimalFormat format = new DecimalFormat("#,###.##");
builder.append(format.format(rowCount));
}
if (deltaRowCount > 0) {
builder.append("(").append(deltaRowCount).append(")");
}
if (actualRowCount != -1) {
builder.append(" actualRows=").append(actualRowCount);
builder.append(" actualRows=").append(format.format(actualRowCount));
}
return builder.toString();
}
Expand Down

0 comments on commit 60722b1

Please sign in to comment.