spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacek Laskowski <ja...@japila.pl>
Subject Re: [SQL] A bug with withColumn?
Date Fri, 01 Apr 2016 23:15:04 GMT
On Thu, Mar 31, 2016 at 5:47 PM, Jacek Laskowski <jacek@japila.pl> wrote:

> It means that it's not only possible to rename a column using
> withColumnRenamed, but also replace the content of a column (in one
> shot) using withColumn with an existing column name. I can live with
> that :)

Hi,

Not only can I live with that, but I did use it today few times
because it was so nice! I used this when I needed to `cast` a column
and I could do it with just `withColumn`. Awesome! You should've seen
the faces of the people I've presented the solution to :)

Pozdrawiam,
Jacek Laskowski
----
https://medium.com/@jaceklaskowski/
Mastering Apache Spark http://bit.ly/mastering-apache-spark
Follow me at https://twitter.com/jaceklaskowski

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org


Mime
View raw message