You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "yu peng (Jira)" <ji...@apache.org> on 2021/03/22 15:47:00 UTC
[jira] [Created] (SPARK-34825) pyspark.sql.function.lit is treating
'1' the same as 1
yu peng created SPARK-34825:
-------------------------------
Summary: pyspark.sql.function.lit is treating '1' the same as 1
Key: SPARK-34825
URL: https://issues.apache.org/jira/browse/SPARK-34825
Project: Spark
Issue Type: Bug
Components: PySpark
Affects Versions: 2.4.4
Reporter: yu peng
In [10]: import pyspark.sql.functions as F
In [11]: df.withColumn('x', F.lit('1')==F.lit(1)).show()
+---+---+---------+----+
| a| b| c| x|
+---+---+---------+----+
| 1| 2| x > y|true|
| 0| 4|a > b > c|true|
+---+---+---------+----+
--
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