We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ab157c commit c38c4e4Copy full SHA for c38c4e4
python/pyspark/rdd.py
@@ -62,7 +62,7 @@ def portable_hash(x):
62
63
>>> portable_hash(None)
64
0
65
- >>> portable_hash((None, 1))
+ >>> portable_hash((None, 1)) & 0xffffffff
66
219750521
67
"""
68
if x is None:
@@ -2015,7 +2015,7 @@ def countApproxDistinct(self, relativeSD=0.05):
2015
>>> n = sc.parallelize(range(1000)).map(str).countApproxDistinct()
2016
>>> 950 < n < 1050
2017
True
2018
- >>> n = self.sc.parallelize([i % 20 for i in range(1000)]).countApproxDistinct()
+ >>> n = sc.parallelize([i % 20 for i in range(1000)]).countApproxDistinct()
2019
>>> 18 < n < 22
2020
2021
0 commit comments