Github user wmellouli commented on the issue: https://github.com/apache/spark/pull/22332 @HyukjinKwon even instead of using the actual method `withColumn(colName: String, col: Column)` we can just add a column and select. The idea from this PR is to add more power/flexibility to withColumn method to cover more use cases, without affecting performance or backward compatibility. IMO using withColumn is more natural and hides adding/replacing + select logic, in one operation.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org