zhengruifeng commented on PR #40135: URL: https://github.com/apache/spark/pull/40135#issuecomment-1441371565
In the JVM side, the logic of `drop(column: Column)` and `drop(columnName: String)` are different, we can not simply always convert a column name to column via `col()` method. If there are multi columns with same name, you can use `drop(column_name)` to drop all of them; or use `drop(df1.name)` to drop column from specific dataframe; But if you invoke `drop(col(name))`, it will fail due to ambiguous issue -- 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]
