imback82 commented on a change in pull request #26593: [SPARK-29890][SQL] 
DataFrameNaFunctions.fill should handle duplicate columns
URL: https://github.com/apache/spark/pull/26593#discussion_r348724702
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/DataFrameNaFunctions.scala
 ##########
 @@ -130,20 +130,20 @@ final class DataFrameNaFunctions private[sql](df: 
DataFrame) {
    *
 
 Review comment:
   Actually, `drop` shows different behavior for `*` since it's using 
`df.resolve` instead of `df.col`:
   ```Scala
   scala> right.na.drop(Seq("*")).show
   org.apache.spark.sql.AnalysisException: Cannot resolve column name "*" among 
(col1, col2);
     at org.apache.spark.sql.Dataset$$anonfun$resolve$1.apply(Dataset.scala:223)
   
   ```

----------------------------------------------------------------
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]

Reply via email to