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

Hyukjin Kwon commented on SPARK-33076:
--------------------------------------

It takes column name:

{code}
>>> from pyspark.sql import functions
>>> spark.range(1).selectExpr("'A' as 
>>> lit").select(functions.lower("lit")).show()
+----------+
|lower(lit)|
+----------+
|         a|
+----------+
{code}

> Change pyspark.sql.functions.lower(col) to get col name
> -------------------------------------------------------
>
>                 Key: SPARK-33076
>                 URL: https://issues.apache.org/jira/browse/SPARK-33076
>             Project: Spark
>          Issue Type: Improvement
>          Components: PySpark, SQL
>    Affects Versions: 3.0.1
>            Reporter: Shahar Luftig
>            Priority: Minor
>              Labels: lowercase, pyspark.sql.functions
>             Fix For: 3.02
>
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> pyspark.sql.functions.lower(col) is getting only Column type and not column 
> name,
> Most of pyspark functions are getting both, And its really confusing.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to