spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marmb...@apache.org
Subject git commit: [SQL] Correct a variable name in JavaApplySchemaSuite.applySchemaToJSON
Date Tue, 28 Oct 2014 03:50:18 GMT
Repository: spark
Updated Branches:
  refs/heads/master 89af6dfc3 -> 27470d340


[SQL] Correct a variable name in JavaApplySchemaSuite.applySchemaToJSON

`schemaRDD2` is not tested because `schemaRDD1` is registered again.

Author: Yin Huai <huai@cse.ohio-state.edu>

Closes #2869 from yhuai/JavaApplySchemaSuite and squashes the following commits:

95fe894 [Yin Huai] Correct variable name.


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

Branch: refs/heads/master
Commit: 27470d3406bc0adde3da79ca34ebf9bc512514b6
Parents: 89af6df
Author: Yin Huai <huai@cse.ohio-state.edu>
Authored: Mon Oct 27 20:50:09 2014 -0700
Committer: Michael Armbrust <michael@databricks.com>
Committed: Mon Oct 27 20:50:09 2014 -0700

----------------------------------------------------------------------
 .../java/org/apache/spark/sql/api/java/JavaApplySchemaSuite.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/27470d34/sql/core/src/test/java/org/apache/spark/sql/api/java/JavaApplySchemaSuite.java
----------------------------------------------------------------------
diff --git a/sql/core/src/test/java/org/apache/spark/sql/api/java/JavaApplySchemaSuite.java
b/sql/core/src/test/java/org/apache/spark/sql/api/java/JavaApplySchemaSuite.java
index 33e5020..9435a88 100644
--- a/sql/core/src/test/java/org/apache/spark/sql/api/java/JavaApplySchemaSuite.java
+++ b/sql/core/src/test/java/org/apache/spark/sql/api/java/JavaApplySchemaSuite.java
@@ -156,7 +156,7 @@ public class JavaApplySchemaSuite implements Serializable {
     JavaSchemaRDD schemaRDD2 = javaSqlCtx.jsonRDD(jsonRDD, expectedSchema);
     StructType actualSchema2 = schemaRDD2.schema();
     Assert.assertEquals(expectedSchema, actualSchema2);
-    schemaRDD1.registerTempTable("jsonTable2");
+    schemaRDD2.registerTempTable("jsonTable2");
     List<Row> actual2 = javaSqlCtx.sql("select * from jsonTable2").collect();
     Assert.assertEquals(expectedResult, actual2);
   }


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


Mime
View raw message