santosh-d3vpl3x opened a new pull request, #37526:
URL: https://github.com/apache/spark/pull/37526
### What changes were proposed in this pull request?
This is a followup on SPARK-39895. The PR previously attempted to adjust
implementation for R as well to match signatures but that part was removed and
we only focused on getting python implementation to behave correctly.
Change supports following operations:
df <- select(read.json(jsonPath), "name", "age")
df$age2 <- df$age
df1 <- drop(df, df$age, df$name)
expect_equal(columns(df1), c("age2"))
df1 <- drop(df, list(df$age, column("random")))
expect_equal(columns(df1), c("name", "age2"))
df1 <- drop(df, list(df$age, df$name))
expect_equal(columns(df1), c("age2"))
### Why are the changes needed?
Followup on previous PR
### Does this PR introduce _any_ user-facing change?
Yes, adds support for multiple "Column" drop in R
### How was this patch tested?
Added test cases for R
--
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]