Github user zero323 commented on a diff in the pull request:
https://github.com/apache/spark/pull/16536#discussion_r97951125
--- Diff: python/pyspark/sql/tests.py ---
@@ -459,6 +459,23 @@ def filename(path):
row2 = df2.select(sameText(df2['file'])).first()
self.assertTrue(row2[0].find("people.json") != -1)
+ def test_udf_defers_judf_initalization(self):
--- End diff --
I thought about it but I have this impression, maybe incorrect, that we
avoid creating new contexts to keep total execution time manageable. If you
think this justifies a separate `TestCase` I am more than fine with that
([SPARK-19224](https://issues.apache.org/jira/browse/SPARK-19224) and
[[PYSPARK] Python tests organization
](http://apache-spark-developers-list.1001551.n3.nabble.com/PYSPARK-Python-tests-organization-td20542.html),
right?).
If not, we could mock this, and put assert on the number of calls.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]