[ 
https://issues.apache.org/jira/browse/SPARK-21847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16143343#comment-16143343
 ] 

Liang-Chi Hsieh commented on SPARK-21847:
-----------------------------------------

{code}
>>> from pyspark.sql.functions import lit,nanvl
>>> lit(1)
Column<1>
{code}

I can't reproduce it.

The python function {{lit}} is created by {{_create_function}}.

> Where is the lit() function in pyspark 2.2.0?
> ---------------------------------------------
>
>                 Key: SPARK-21847
>                 URL: https://issues.apache.org/jira/browse/SPARK-21847
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark
>    Affects Versions: 2.2.0
>            Reporter: Neil Huang
>
> when I do this:
> from pyspark.sql.functions import lit,nanvl
> it said the lit can not resolve,and I found there is no lit func in 
> functions.py
> but the doc said that it has it...
> in 2.1.1, there is lit func and work very well
> please where is the func, thanks.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to