A data scientist wants to remove the star_rating column from the Delta table at the location path. To do this, they need to load in data and drop the star_rating column. Which of the following code blocks accomplishes this task?
A.
spark.read.format(“delta”).load(path).drop(“star_rating”)
B.
spark.read.format(“delta”).table(path).drop(“star_rating”)
C.
Delta tables cannot be modified
D.
spark.read.table(path).drop(“star_rating”)
E.
spark.sql(“SELECT * EXCEPT star_rating FROM path”)
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
BokNinja
Highly Voted 1 year, 4 months agosindhu_gowda
Most Recent 10 months, 3 weeks agoAlishahab70
1 year, 2 months agospaceexplorer
1 year, 3 months agohugodscarvalho
1 year, 3 months ago