Details
Description
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, df$age, column("random"))
expect_equal(columns(df1), c("name", "age2"))
df1 <- drop(df, df$age, df$name)
expect_equal(columns(df1), c("age2"))
Attachments
Issue Links
- is related to
-
SPARK-39895 pyspark drop doesn't accept *cols
- Resolved
- links to