[ https://issues.apache.org/jira/browse/SPARK-27087?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon resolved SPARK-27087. ---------------------------------- Resolution: Invalid > Inability to access to column alias in pyspark > ---------------------------------------------- > > Key: SPARK-27087 > URL: https://issues.apache.org/jira/browse/SPARK-27087 > Project: Spark > Issue Type: Bug > Components: PySpark > Affects Versions: 2.4.0 > Reporter: Vincent > Priority: Minor > > In pyspark I have the following: > {code:java} > import pyspark.sql.functions as F > cc = F.lit(1).alias("A") > print(cc) > print(cc._jc.toString()) > {code} > I get : > {noformat} > Column<b'1 AS `A`'> > 1 AS `A` > {noformat} > Is there any way for me to just print "A" from cc ? it seems I'm unable to > extract the alias programatically from the column object. > Also I think that in spark-sql in scala, if I print "cc" it would just print > "A" instead, so this seem like a bug or a missing feature to me -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org