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/02/08 13:54:09 UTC

[jira] [Updated] (SPARK-34191) udf type hint should allow dectorator with named returnType

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

Hyukjin Kwon updated SPARK-34191:
---------------------------------
    Fix Version/s: 3.1.1

> udf type hint should allow dectorator with named returnType
> -----------------------------------------------------------
>
>                 Key: SPARK-34191
>                 URL: https://issues.apache.org/jira/browse/SPARK-34191
>             Project: Spark
>          Issue Type: Improvement
>          Components: PySpark
>    Affects Versions: 3.1.0, 3.2.0, 3.1.1
>            Reporter: Maciej Szymkiewicz
>            Assignee: Piotr Grzegorski
>            Priority: Major
>             Fix For: 3.1.1, 3.1.2
>
>
> At the moment annotations allow following decorated patterns:
>  
> {code:python}
> @udf
> def f(x): ...
> @udf("string")  # Or DataType instance
> def f(x): ...
> @udf(f="string")  # Awkward but technically valid
> def f(x): ...
> {code}
> We should also support 
> {code:python}
> @udf(returnType="string")
> def f(x): ...
> {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