You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Maciej Szymkiewicz (Jira)" <ji...@apache.org> on 2022/01/13 11:37:00 UTC

[jira] [Resolved] (SPARK-37686) Migrate remaining pyspark.sql.functions to _invoke_* style

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

Maciej Szymkiewicz resolved SPARK-37686.
----------------------------------------
    Fix Version/s: 3.3.0
       Resolution: Fixed

Issue resolved by pull request 34951
[https://github.com/apache/spark/pull/34951]

> Migrate remaining pyspark.sql.functions to _invoke_* style
> ----------------------------------------------------------
>
>                 Key: SPARK-37686
>                 URL: https://issues.apache.org/jira/browse/SPARK-37686
>             Project: Spark
>          Issue Type: Improvement
>          Components: PySpark, SQL
>    Affects Versions: 3.3.0
>            Reporter: Maciej Szymkiewicz
>            Assignee: Maciej Szymkiewicz
>            Priority: Major
>             Fix For: 3.3.0
>
>
> In SPARK-32084 we converted a number of dynamically created functions to standard def using newly added {{_invoke_function}} helpers. Remaining functions stayed untouched. 
> These allow us to implement these with minimum amount of boilerplate code.
> With recent migration of type hints to inline variant we had to type checker hints:
> {code:python}
>     sc = SparkContext._active_spark_context
>     assert sc is not None and sc._jvm is not Non
> {code}
> to the functions not covered in SPARK-32084. This added to standard conversions (i.e. ({_to_java_column}}, {{Column(jc)}}) make these pretty verbose.
> However, it is possible to convert remaining functions using {{_invoke_function}} helpers to address that.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org