Skip to content

Commit 7a56c24

Browse files
committed
bugfix
1 parent cba9463 commit 7a56c24

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

python/pyspark/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ def dump_profiles(self, path):
823823
"""
824824
if not os.path.exists(path):
825825
os.makedirs(path)
826-
for id, acc, _ in self._created_profiles:
826+
for id, acc, _ in self._profile_stats:
827827
stats = acc.value
828828
if stats:
829829
p = os.path.join(path, "rdd_%d.pstats" % id)

python/pyspark/rdd.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2025,7 +2025,6 @@ class PipelinedRDD(RDD):
20252025
>>> rdd.flatMap(lambda x: [x, x]).reduce(add)
20262026
20
20272027
"""
2028-
_created_profiles = []
20292028

20302029
def __init__(self, prev, func, preservesPartitioning=False):
20312030
if not isinstance(prev, PipelinedRDD) or not prev._is_pipelinable():

0 commit comments

Comments
 (0)