You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2021/07/19 08:55:00 UTC

[jira] [Commented] (SPARK-36161) dropDuplicates does not type check argument

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

Apache Spark commented on SPARK-36161:
--------------------------------------

User 'sammyjmoseley' has created a pull request for this issue:
https://github.com/apache/spark/pull/33364

> dropDuplicates does not type check argument
> -------------------------------------------
>
>                 Key: SPARK-36161
>                 URL: https://issues.apache.org/jira/browse/SPARK-36161
>             Project: Spark
>          Issue Type: Improvement
>          Components: PySpark
>    Affects Versions: 3.1.2
>            Reporter: Samuel Moseley
>            Priority: Major
>
> When giving a single string to {{dropDuplicates}} method in pyspark a cryptic error is returned. Rather than returning a cryptic error, handle gracefully or return an exception. 
>  
> Proposal: Model after {{dropna}} behavior. If single string then use it to create a list, otherwise if argument is not list/tuple return an exception



--
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