spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pwend...@apache.org
Subject [3/3] spark git commit: HOTFIX: Java 6 compilation error in Spark SQL
Date Wed, 11 Feb 2015 06:44:30 GMT
HOTFIX: Java 6 compilation error in Spark SQL


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/15180bcf
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/15180bcf
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/15180bcf

Branch: refs/heads/branch-1.3
Commit: 15180bcf861ce7a76c06b0c33983a7ff548dfa02
Parents: 536dae9
Author: Patrick Wendell <patrick@databricks.com>
Authored: Tue Feb 10 22:43:32 2015 -0800
Committer: Patrick Wendell <patrick@databricks.com>
Committed: Tue Feb 10 22:44:19 2015 -0800

----------------------------------------------------------------------
 .../test/java/org/apache/spark/sql/sources/JavaSaveLoadSuite.java  | 2 +-
 .../org/apache/spark/sql/hive/JavaMetastoreDataSourcesSuite.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/15180bcf/sql/core/src/test/java/org/apache/spark/sql/sources/JavaSaveLoadSuite.java
----------------------------------------------------------------------
diff --git a/sql/core/src/test/java/org/apache/spark/sql/sources/JavaSaveLoadSuite.java b/sql/core/src/test/java/org/apache/spark/sql/sources/JavaSaveLoadSuite.java
index 852baf0..311f1bd 100644
--- a/sql/core/src/test/java/org/apache/spark/sql/sources/JavaSaveLoadSuite.java
+++ b/sql/core/src/test/java/org/apache/spark/sql/sources/JavaSaveLoadSuite.java
@@ -87,7 +87,7 @@ public class JavaSaveLoadSuite {
     options.put("path", path.toString());
     df.save("org.apache.spark.sql.json", SaveMode.ErrorIfExists, options);
 
-    List<StructField> fields = new ArrayList<>();
+    List<StructField> fields = new ArrayList<StructField>();
     fields.add(DataTypes.createStructField("b", DataTypes.StringType, true));
     StructType schema = DataTypes.createStructType(fields);
     DataFrame loadedDF = sqlContext.load("org.apache.spark.sql.json", schema, options);

http://git-wip-us.apache.org/repos/asf/spark/blob/15180bcf/sql/hive/src/test/java/org/apache/spark/sql/hive/JavaMetastoreDataSourcesSuite.java
----------------------------------------------------------------------
diff --git a/sql/hive/src/test/java/org/apache/spark/sql/hive/JavaMetastoreDataSourcesSuite.java
b/sql/hive/src/test/java/org/apache/spark/sql/hive/JavaMetastoreDataSourcesSuite.java
index 9744a2a..313e847 100644
--- a/sql/hive/src/test/java/org/apache/spark/sql/hive/JavaMetastoreDataSourcesSuite.java
+++ b/sql/hive/src/test/java/org/apache/spark/sql/hive/JavaMetastoreDataSourcesSuite.java
@@ -121,7 +121,7 @@ public class JavaMetastoreDataSourcesSuite {
       sqlContext.sql("SELECT * FROM javaSavedTable"),
       df.collectAsList());
 
-    List<StructField> fields = new ArrayList<>();
+    List<StructField> fields = new ArrayList<StructField>();
     fields.add(DataTypes.createStructField("b", DataTypes.StringType, true));
     StructType schema = DataTypes.createStructType(fields);
     DataFrame loadedDF =


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org


Mime
View raw message