Repository: hive Updated Branches: refs/heads/master 5a550cb46 -> 201b1a004
HIVE-11832: HIVE-11802 breaks compilation in JDK 8 Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/201b1a00 Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/201b1a00 Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/201b1a00 Branch: refs/heads/master Commit: 201b1a004adbefab1b48098241c0fc43d3dd0dcf Parents: 5a550cb Author: Sergio Pena <sergio.p...@cloudera.com> Authored: Wed Sep 16 11:22:27 2015 -0500 Committer: Sergio Pena <sergio.p...@cloudera.com> Committed: Wed Sep 16 11:22:27 2015 -0500 ---------------------------------------------------------------------- service/src/java/org/apache/hive/service/cli/Column.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/201b1a00/service/src/java/org/apache/hive/service/cli/Column.java ---------------------------------------------------------------------- diff --git a/service/src/java/org/apache/hive/service/cli/Column.java b/service/src/java/org/apache/hive/service/cli/Column.java index 31091a3..adb269a 100644 --- a/service/src/java/org/apache/hive/service/cli/Column.java +++ b/service/src/java/org/apache/hive/service/cli/Column.java @@ -40,7 +40,6 @@ import org.apache.hive.service.cli.thrift.TI16Column; import org.apache.hive.service.cli.thrift.TI32Column; import org.apache.hive.service.cli.thrift.TI64Column; import org.apache.hive.service.cli.thrift.TStringColumn; -import sun.misc.FloatingDecimal; /** * Column. @@ -350,7 +349,7 @@ public class Column extends AbstractList { break; case FLOAT_TYPE: nulls.set(size, field == null); - doubleVars()[size] = field == null ? 0 : new FloatingDecimal((Float)field).doubleValue(); + doubleVars()[size] = field == null ? 0 : new Double(field.toString()); break; case DOUBLE_TYPE: nulls.set(size, field == null);