You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sandeep Singh (Jira)" <ji...@apache.org> on 2023/01/03 02:54:00 UTC

[jira] [Created] (SPARK-41852) Fix `pmod` function

Sandeep Singh created SPARK-41852:
-------------------------------------

             Summary: Fix `pmod` function
                 Key: SPARK-41852
                 URL: https://issues.apache.org/jira/browse/SPARK-41852
             Project: Spark
          Issue Type: Sub-task
          Components: Connect, PySpark
    Affects Versions: 3.4.0
            Reporter: Sandeep Singh
             Fix For: 3.4.0


{code:java}
File "/Users/s.singh/personal/spark-oss/python/pyspark/sql/connect/functions.py", line 313, in pyspark.sql.connect.functions.nanvl
Failed example:
    df.select(nanvl("a", "b").alias("r1"), nanvl(df.a, df.b).alias("r2")).collect()
Expected:
    [Row(r1=1.0, r2=1.0), Row(r1=2.0, r2=2.0)]
Got:
    [Row(r1=1.0, r2=1.0), Row(r1=nan, r2=nan)]{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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