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

[jira] [Updated] (SPARK-36211) type check fails for `F.udf(...).asNonDeterministic()

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

Luran He updated SPARK-36211:
-----------------------------
    Description: 
The following code should type-check, but doesn't:

{{import uuid}}

{{pyspark.sql.functions as F}}

{{my_udf = F.udf(lambda: str(uuid.uuid4())).asNondeterministic()}}

In {{python/pyspark/sql/functions.pyi}} the {{udf}} signature is wrong

  was:
The following code should type-check, but doesn't:

{{import uuid}}

{{pyspark.sql.functions as F}}

{{my_udf = F.udf(lambda: str(uuid.uuid4())).asNondeterministic()}}

In {{python/pyspark/sql/functions.pyi}} the `udf` signature is wrong


> type check fails for `F.udf(...).asNonDeterministic()
> -----------------------------------------------------
>
>                 Key: SPARK-36211
>                 URL: https://issues.apache.org/jira/browse/SPARK-36211
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark
>    Affects Versions: 3.1.2
>            Reporter: Luran He
>            Priority: Minor
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> The following code should type-check, but doesn't:
> {{import uuid}}
> {{pyspark.sql.functions as F}}
> {{my_udf = F.udf(lambda: str(uuid.uuid4())).asNondeterministic()}}
> In {{python/pyspark/sql/functions.pyi}} the {{udf}} signature is wrong



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