Description
The following PySpark snippet shows the problem:
>>> sqlContext.range(10).selectExpr('id AS a').coalesce(1).explain(True) ... == Physical Plan == Coalesce 1 ConvertToSafe TungstenProject [id#3L AS a#4L] Scan PhysicalRDD[id#3L]
The ConvertToSafe is unnecessary.