[
https://issues.apache.org/jira/browse/SPARK-37601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17470153#comment-17470153
]
Dongjoon Hyun commented on SPARK-37601:
---------------------------------------
Thank you for managing JIRA issues, [~zero323].
However, please don't use `Resolved` for the duplicated JIRA. It's a little
confusing.
For this one, although I closed it as `Incomplete` from my perspective, you can
use `Close` with `Duplicate` or `Superseded` next time.
> Could/should sql.DataFrame.transform accept function parameters?
> ----------------------------------------------------------------
>
> Key: SPARK-37601
> URL: https://issues.apache.org/jira/browse/SPARK-37601
> Project: Spark
> Issue Type: Improvement
> Components: PySpark
> Affects Versions: 3.3.0
> Reporter: Rafal Wojdyla
> Priority: Major
>
> {code:python}
> def foo(df: DataFrame, p: int) -> DataFrame
> ...
> # current:
> from functools import partial
> df.transform(partial(foo, p=3))
> # or:
> df.transform(lambda df: foo(df, p=3))
> # vs suggested:
> df.transform(foo, p=3)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]