You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/05/24 15:42:44 UTC

[GitHub] [spark] jose-torres commented on a change in pull request #24690: [SPARK-27711][CORE] Unset InputFileBlockHolder at the end of tasks

jose-torres 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_r287415950
 
 

 ##########
 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:
   Hmm, I don't know why the import didn't get copied over. Added.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org