Skip to content

Commit af336b7

Browse files
committed
add comments
1 parent ddd4ee1 commit af336b7

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

python/pyspark/java_gateway.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def run(self):
111111
java_import(gateway.jvm, "org.apache.spark.streaming.*") # do we need this?
112112
java_import(gateway.jvm, "org.apache.spark.streaming.api.java.*")
113113
java_import(gateway.jvm, "org.apache.spark.streaming.api.python.*")
114-
java_import(gateway.jvm, "org.apache.spark.streaming.dstream.*")
114+
java_import(gateway.jvm, "org.apache.spark.streaming.dstream.*") # do we need this?
115115
java_import(gateway.jvm, "org.apache.spark.mllib.api.python.*")
116116
java_import(gateway.jvm, "org.apache.spark.sql.SQLContext")
117117
java_import(gateway.jvm, "org.apache.spark.sql.hive.HiveContext")

python/pyspark/streaming/context.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,6 @@ def _testInputStream(self, test_inputs, numSlices=None):
152152
test_rdds.append(test_rdd._jrdd)
153153
test_rdd_deserializers.append(test_rdd._jrdd_deserializer)
154154

155-
# if len(set(test_rdd_deserializers)) > 1:
156-
# raise IOError("Deserializer should be one type to run test case. "
157-
# "See the SparkContext.parallelize to understand how to decide deserializer")
158155
jtest_rdds = ListConverter().convert(test_rdds, SparkContext._gateway._gateway_client)
159156
jinput_stream = self._jvm.PythonTestInputStream(self._jssc, jtest_rdds).asJavaDStream()
160157

python/pyspark/streaming/dstream.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,7 @@ def saveAsTextFile(rdd, time):
425425
# TODO: implement leftOuterJoin
426426
# TODO: implemtnt rightOuterJoin
427427

428+
428429
class PipelinedDStream(DStream):
429430
def __init__(self, prev, func, preservesPartitioning=False):
430431
if not isinstance(prev, PipelinedDStream) or not prev._is_pipelinable():

0 commit comments

Comments
 (0)