HyukjinKwon commented on a change in pull request #27128: [SPARK-30421][SQL]
Dropped columns still available for filtering
URL: https://github.com/apache/spark/pull/27128#discussion_r364092570
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala
##########
@@ -2376,7 +2376,18 @@ class Dataset[T] private[sql](
if (remainingCols.size == allColumns.size) {
toDF()
} else {
- this.select(remainingCols: _*)
+ val df = this.select(remainingCols: _*)
+ withAction("drop", df.queryExecution) { physicalPlan =>
Review comment:
why do we need to copy? and also `drop` isn't an action. Also, looks we're
going to lose existing plans.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]