QuestionQ176

VerifiedDeveloping Apache Spark™ DataFrame/DataSet API Applications

A data engineer must replace the existing underlying data at the path path/to/data.

Which code should be used to overwrite the underlying data at the target location?

Explanation

INSERT OVERWRITE DIRECTORY replaces the data already stored in the specified directory with the rows produced by the query. It supports a data-source format through USING, write options through OPTIONS, and a SELECT query as the data source.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!