Skip to content

Commit 34ea555

Browse files
committed
Remove unnecessary multiplication by 1.0
1 parent 8e34250 commit 34ea555

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

presto-hive/src/test/java/com/facebook/presto/hive/benchmark/HiveFileFormatBenchmark.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ public static void main(String[] args)
590590
for (RunResult result : results) {
591591
Statistics inputSizeStats = result.getSecondaryResults().get("inputSize").getStatistics();
592592
Statistics outputSizeStats = result.getSecondaryResults().get("outputSize").getStatistics();
593-
double compressionRatio = 1.0 * inputSizeStats.getSum() / outputSizeStats.getSum();
593+
double compressionRatio = inputSizeStats.getSum() / outputSizeStats.getSum();
594594
String compression = result.getParams().getParam("compression");
595595
String fileFormat = result.getParams().getParam("fileFormat");
596596
String dataSet = result.getParams().getParam("dataSet");

presto-main/src/main/java/com/facebook/presto/operator/scalar/ColorFunctions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public static long color(
130130
@SqlType(ColorType.NAME) long lowColor,
131131
@SqlType(ColorType.NAME) long highColor)
132132
{
133-
return color((value - low) * 1.0 / (high - low), lowColor, highColor);
133+
return color((value - low) / (high - low), lowColor, highColor);
134134
}
135135

136136
/**

0 commit comments

Comments
 (0)