Github user davies commented on a diff in the pull request:
https://github.com/apache/spark/pull/12398#discussion_r61992444
--- Diff: python/pyspark/context.py ---
@@ -814,6 +817,40 @@ def addPyFile(self, path):
import importlib
importlib.invalidate_caches()
+ def addPyPackage(self, pkg):
+ """
+ Add a package to the spark context, the package must have already
been
+ imported by the driver via __import__ semantics. Supports namespace
+ packages by simulating the loading __path__ as a set of modules
from
+ the __path__ list in a single package.
+ """
--- End diff --
Could you add an example here?
---
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]