Github user gatorsmile commented on the issue:

    https://github.com/apache/spark/pull/20171
  
    ```
    from pyspark.sql.functions import pandas_udf
    from pyspark.sql.functions import col, lit
    from pyspark.sql.types import LongType
    df = spark.range(3)
    f = pandas_udf(lambda x, y: len(x) + y, LongType())
    df.select(f(lit('text'), col('id'))).show()
    ```
    
    The result is wrong. cc @icexelloss @BryanCutler @taku-k @cloud-fan 
    ```
    +------------------+
    |<lambda>(text, id)|
    +------------------+
    |                 1|
    |                 2|
    |                 3|
    +------------------+
    ```
    



---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to