Skip to content

Commit 13dab9c

Browse files
holdenkrxin
authored andcommitted
[SPARK-12611][SQL][PYSPARK][TESTS] Fix test_infer_schema_to_local
Previously (when the PR was first created) not specifying b= explicitly was fine (and treated as default null) - instead be explicit about b being None in the test. Author: Holden Karau <holden@us.ibm.com> Closes apache#10564 from holdenk/SPARK-12611-fix-test-infer-schema-local.
1 parent b8410ff commit 13dab9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyspark/sql/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def test_infer_schema_to_local(self):
360360
df2 = self.sqlCtx.createDataFrame(rdd, samplingRatio=1.0)
361361
self.assertEqual(df.schema, df2.schema)
362362

363-
rdd = self.sc.parallelize(range(10)).map(lambda x: Row(a=x))
363+
rdd = self.sc.parallelize(range(10)).map(lambda x: Row(a=x, b=None))
364364
df3 = self.sqlCtx.createDataFrame(rdd, df.schema)
365365
self.assertEqual(10, df3.count())
366366

0 commit comments

Comments
 (0)