aboutsummaryrefslogtreecommitdiff
path: root/contrib/storage-hbase
diff options
context:
space:
mode:
authorreudismam <reudismam@gmail.com>2018-01-24 09:36:04 -0300
committerBen-Zvi <bben-zvi@mapr.com>2018-01-31 15:40:29 -0800
commit07dae3c34001f15b28f0332ddc1be23adb539b41 (patch)
treec41c621038bd26727b711254c476abedc68cedfe /contrib/storage-hbase
parentf0d00c62b594e424ea085ebd0a5be26f0f509fda (diff)
DRILL-6106: Use valueOf method instead of constructor since valueOf has a higher performance by caching frequently requested values.
closes #1099
Diffstat (limited to 'contrib/storage-hbase')
-rw-r--r--contrib/storage-hbase/src/test/java/org/apache/drill/hbase/TestOrderedBytesConvertFunctions.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/storage-hbase/src/test/java/org/apache/drill/hbase/TestOrderedBytesConvertFunctions.java b/contrib/storage-hbase/src/test/java/org/apache/drill/hbase/TestOrderedBytesConvertFunctions.java
index 2ef6d6840..e376ef070 100644
--- a/contrib/storage-hbase/src/test/java/org/apache/drill/hbase/TestOrderedBytesConvertFunctions.java
+++ b/contrib/storage-hbase/src/test/java/org/apache/drill/hbase/TestOrderedBytesConvertFunctions.java
@@ -54,7 +54,7 @@ public class TestOrderedBytesConvertFunctions extends BaseTestQuery {
@Test
public void testOrderedBytesDoubleConvertFrom() throws Throwable {
- verifyPhysicalPlan("convert_from(binary_string('\\x31\\x80\\x00\\x00\\x00\\x00\\x00\\x00\\x01'), 'DOUBLE_OB')", new Double(4.9e-324));
+ verifyPhysicalPlan("convert_from(binary_string('\\x31\\x80\\x00\\x00\\x00\\x00\\x00\\x00\\x01'), 'DOUBLE_OB')", Double.valueOf(4.9e-324));
}
protected <T> void verifyPhysicalPlan(String expression, T expectedResults) throws Throwable {