In pyspark I have the following:
import pyspark.sql.functions as F
cc = F.lit(1).alias("A")
print(cc)
print(cc._jc.toString())
I get :
Column<b'1 AS `A`'>
1 AS `A`
Is there any way for me to just print "A" from cc ? it seems I'm unable to extract the alias easily.
Also I think that in spark-sql in scala, if I print "cc" it would just print "A" instead