From 72009b7715f404c2903a2a7d28f8c79fc2f49cfd Mon Sep 17 00:00:00 2001 From: Holden Karau Date: Sun, 3 Jan 2016 14:00:40 -0800 Subject: [PATCH] Fix test_infer_schema_to_local to explicitly have b=None rather than depending on the old behaviour --- python/pyspark/sql/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pyspark/sql/tests.py b/python/pyspark/sql/tests.py index 10b99175ad952..9ada96601a1cd 100644 --- a/python/pyspark/sql/tests.py +++ b/python/pyspark/sql/tests.py @@ -360,7 +360,7 @@ def test_infer_schema_to_local(self): df2 = self.sqlCtx.createDataFrame(rdd, samplingRatio=1.0) self.assertEqual(df.schema, df2.schema) - rdd = self.sc.parallelize(range(10)).map(lambda x: Row(a=x)) + rdd = self.sc.parallelize(range(10)).map(lambda x: Row(a=x, b=None)) df3 = self.sqlCtx.createDataFrame(rdd, df.schema) self.assertEqual(10, df3.count())