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

2021-07-03 Thread Hyukjin Kwon (Jira)


 [ 
https://issues.apache.org/jira/browse/SPARK-35986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hyukjin Kwon updated SPARK-35986:
-
Fix Version/s: (was: 3.0.4)

> 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.2.0, 3.1.3, 3.3.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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



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

2021-07-03 Thread Hyukjin Kwon (Jira)


 [ 
https://issues.apache.org/jira/browse/SPARK-35986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hyukjin Kwon updated SPARK-35986:
-
Fix Version/s: 3.0.4
   3.1.3

> 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.2.0, 3.1.3, 3.0.4, 3.3.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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Updated] (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:all-tabpanel
 ]

Tomas Pereira de Vasconcelos updated SPARK-35986:
-
Description: 
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}

  was:
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}


> 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