Skip to content

Commit 550368e

Browse files
committed
SPARK-25213: Fix PySpark test.
1 parent c49157e commit 550368e

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
@@ -6399,7 +6399,7 @@ def test_pyspark_udf_SPARK_25213(self):
63996399
from pyspark.sql.functions import udf
64006400

64016401
df = self.spark.read.format("org.apache.spark.sql.sources.v2.SimpleDataSourceV2").load()
6402-
result = datasource_v2_df.withColumn('x', udf(lambda x: x, 'int')(datasource_v2_df['i']))
6402+
result = df.withColumn('x', udf(lambda x: x, 'int')(df['i']))
64036403
rows = list(map(lambda r: r.asDict(), result.collect()))
64046404
expected = [{'i': i, 'j': -i, 'x': i} for i in range(10)]
64056405
self.assertEqual(rows, expected)

0 commit comments

Comments
 (0)