diff options
author | Yin Huai <huai@cse.ohio-state.edu> | 2014-10-27 20:50:09 -0700 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2014-10-27 20:50:09 -0700 |
commit | 27470d3406bc0adde3da79ca34ebf9bc512514b6 (patch) | |
tree | e098ef7aaebad6c4609961b0809b9ad789794a66 /sql/core | |
parent | 89af6dfc3afb2b8fc60fa74afb52541dbf3c4e8f (diff) | |
download | spark-27470d3406bc0adde3da79ca34ebf9bc512514b6.tar.gz spark-27470d3406bc0adde3da79ca34ebf9bc512514b6.tar.bz2 spark-27470d3406bc0adde3da79ca34ebf9bc512514b6.zip |
[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.
Diffstat (limited to 'sql/core')
-rw-r--r-- | sql/core/src/test/java/org/apache/spark/sql/api/java/JavaApplySchemaSuite.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 33e5020bc6..9435a88009 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); } |