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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org