aboutsummaryrefslogtreecommitdiff
path: root/sql/hive/compatibility/src/test/scala
diff options
context:
space:
mode:
authorscwf <wangfei1@huawei.com>2015-05-21 12:31:58 -0700
committerMichael Armbrust <michael@databricks.com>2015-05-21 12:31:58 -0700
commitf6c486aa4b0d3a50b53c110fd63d226fffeb87f7 (patch)
treedb039f1f1fe737ded59a5ff96bcabe65f05a7486 /sql/hive/compatibility/src/test/scala
parent4f572008f804068c1a81cc334ff2367dbeae6493 (diff)
downloadspark-f6c486aa4b0d3a50b53c110fd63d226fffeb87f7.tar.gz
spark-f6c486aa4b0d3a50b53c110fd63d226fffeb87f7.tar.bz2
spark-f6c486aa4b0d3a50b53c110fd63d226fffeb87f7.zip
[SQL] [TEST] udf_java_method failed due to jdk version
java.lang.Math.exp(1.0) has different result between jdk versions. so do not use createQueryTest, write a separate test for it. ``` jdk version result 1.7.0_11 2.7182818284590455 1.7.0_05 2.7182818284590455 1.7.0_71 2.718281828459045 ``` Author: scwf <wangfei1@huawei.com> Closes #6274 from scwf/java_method and squashes the following commits: 3dd2516 [scwf] address comments 5fa1459 [scwf] style df46445 [scwf] fix test error fcb6d22 [scwf] fix udf_java_method
Diffstat (limited to 'sql/hive/compatibility/src/test/scala')
-rw-r--r--sql/hive/compatibility/src/test/scala/org/apache/spark/sql/hive/execution/HiveCompatibilitySuite.scala6
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/hive/compatibility/src/test/scala/org/apache/spark/sql/hive/execution/HiveCompatibilitySuite.scala b/sql/hive/compatibility/src/test/scala/org/apache/spark/sql/hive/execution/HiveCompatibilitySuite.scala
index b6245a5707..0b1917a392 100644
--- a/sql/hive/compatibility/src/test/scala/org/apache/spark/sql/hive/execution/HiveCompatibilitySuite.scala
+++ b/sql/hive/compatibility/src/test/scala/org/apache/spark/sql/hive/execution/HiveCompatibilitySuite.scala
@@ -250,7 +250,10 @@ class HiveCompatibilitySuite extends HiveQueryFileTest with BeforeAndAfter {
// The isolated classloader seemed to make some of our test reset mechanisms less robust.
"combine1", // This test changes compression settings in a way that breaks all subsequent tests.
- "load_dyn_part14.*" // These work alone but fail when run with other tests...
+ "load_dyn_part14.*", // These work alone but fail when run with other tests...
+
+ // the answer is sensitive for jdk version
+ "udf_java_method"
) ++ HiveShim.compatibilityBlackList
/**
@@ -877,7 +880,6 @@ class HiveCompatibilitySuite extends HiveQueryFileTest with BeforeAndAfter {
"udf_int",
"udf_isnotnull",
"udf_isnull",
- "udf_java_method",
"udf_lcase",
"udf_length",
"udf_lessthan",