beliefer commented on code in PR #43632:
URL: https://github.com/apache/spark/pull/43632#discussion_r1382497615
##########
sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala:
##########
@@ -3064,13 +3064,31 @@ class Dataset[T] private[sql](
*/
@scala.annotation.varargs
def drop(col: Column, cols: Column*): DataFrame = {
- val allColumns = col +: cols
- val expressions = (for (col <- allColumns) yield col match {
+ val expressions = (col +: cols).map {
case Column(u: UnresolvedAttribute) =>
- queryExecution.analyzed.resolveQuoted(
Review Comment:
What's the behavior of
`dropped_1 = joined_df.select(left_df["value1"], right_df["join_key"],
right_df["value2"])` ?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]