HyukjinKwon commented on a change in pull request #24690: [SPARK-27711][CORE]
Unset InputFileBlockHolder at the end of tasks
URL: https://github.com/apache/spark/pull/24690#discussion_r287191526
##########
File path: python/pyspark/sql/tests.py
##########
@@ -832,6 +832,21 @@ def filename(path):
row2 = df2.select(sameText(df2['file'])).first()
self.assertTrue(row2[0].find("people.json") != -1)
+ def test_input_file_name_reset_for_rdd(self):
+ rdd =
self.sc.textFile('python/test_support/hello/hello.txt').map(lambda x: {'data':
x})
+ df = self.spark.createDataFrame(rdd, "data STRING")
+ df.select(input_file_name().alias('file')).collect()
Review comment:
@jose-torres, seems `input_file_name` is not defined in this file
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]