[jira] [Commented] (SPARK-35986) fix pyspark.rdd.RDD.histogram's buckets argument

2021-07-02 Thread Tomas Pereira de Vasconcelos (Jira)


[ 
https://issues.apache.org/jira/browse/SPARK-35986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17373352#comment-17373352
 ] 

Tomas Pereira de Vasconcelos commented on SPARK-35986:
--

Pull request: 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
>Priority: Minor
>  Labels: PySpark, pyspark, stubs
>   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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Commented] (SPARK-35986) fix pyspark.rdd.RDD.histogram's buckets argument

2021-07-02 Thread Apache Spark (Jira)


[ 
https://issues.apache.org/jira/browse/SPARK-35986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17373353#comment-17373353
 ] 

Apache Spark commented on SPARK-35986:
--

User 'tpvasconcelos' has created a pull request for this issue:
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
>Priority: Minor
>  Labels: PySpark, pyspark, stubs
>   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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org