Github user JoshRosen commented on a diff in the pull request:
https://github.com/apache/spark/pull/2205#discussion_r16923130
--- Diff: python/pyspark/__init__.py ---
@@ -61,13 +61,16 @@
from pyspark.conf import SparkConf
from pyspark.context import SparkContext
-from pyspark.sql import SQLContext
from pyspark.rdd import RDD
-from pyspark.sql import SchemaRDD
-from pyspark.sql import Row
+from pyspark.sql import SQLContext, HiveContext, SchemaRDD, Row
from pyspark.files import SparkFiles
from pyspark.storagelevel import StorageLevel
+from pyspark.accumulators import Accumulator, AccumulatorParam
+from pyspark.broadcast import Broadcast
+from pyspark.serializers import MarshalSerializer, PickleSerializer
-
-__all__ = ["SparkConf", "SparkContext", "SQLContext", "RDD", "SchemaRDD",
- "SparkFiles", "StorageLevel", "Row"]
+__all__ = [
+ "SparkConf", "SparkContext", "SparkFiles", "RDD", "StorageLevel",
"Broadcast",
+ "Accumulator", "AccumulatorParam", "MarshalSerializer",
"PickleSerializer",
+ "SQLContext", "HiveContext", "SchemaRDD", "Row",
--- End diff --
I think these are just convenience imports, right? The documentation
should probably use the full package names.
---
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]