Skip to content
Snippets Groups Projects
Commit 27470d34 authored by Yin Huai's avatar Yin Huai Committed by Michael Armbrust
Browse files

[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.
parent 89af6dfc
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment