You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2020/10/07 08:06:00 UTC

[jira] [Commented] (SPARK-33076) Change pyspark.sql.functions.lower(col) to get col name

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