You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2021/07/04 01:25:00 UTC
[jira] [Resolved] (SPARK-35986) fix pyspark.rdd.RDD.histogram's
buckets argument
[ https://issues.apache.org/jira/browse/SPARK-35986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon resolved SPARK-35986.
----------------------------------
Fix Version/s: 3.2.0
3.3.0
Resolution: Fixed
Issue resolved by pull request 33185
[https://github.com/apache/spark/pull/33185]
> fix pyspark.rdd.RDD.histogram's buckets argument
> ------------------------------------------------
>
> Key: SPARK-35986
> URL: https://issues.apache.org/jira/browse/SPARK-35986
> Project: Spark
> Issue Type: Improvement
> Components: PySpark
> Affects Versions: 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.1.0, 3.1.1, 3.1.2
> Reporter: Tomas Pereira de Vasconcelos
> Assignee: Tomas Pereira de Vasconcelos
> Priority: Minor
> Labels: PySpark, pyspark, stubs
> Fix For: 3.3.0, 3.2.0
>
> Original Estimate: 1m
> Remaining Estimate: 1m
>
> I originally opened an issue and created a PR in the [https://github.com/zero323/pyspark-stubs] repository.
> Issue: [https://github.com/zero323/pyspark-stubs/issues/548]
> PR: [https://github.com/zero323/pyspark-stubs/pull/549]
> —
> The type hint for {{pyspark.rdd.RDD.histogram}}'s {{buckets}} argument should be {{Union[int, List[T], Tuple[T, ...]]}}
> From {{pyspark}} source:
> {code:java}
> if isinstance(buckets, int):
> ...
> elif isinstance(buckets, (list, tuple)):
> ...
> else:
> raise TypeError("buckets should be a list or tuple or number(int or long)")
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org