QuestionQ25

VerifiedUsing Spark ML

A machine learning engineer needs to load data from the first version of a Delta table at a location path.

Which of the following code lines can be used to complete this task?

Explanation

Delta Lake supports time travel through the DataFrameReader option versionAsOf. Delta table versions begin at 0, so specifying versionAsOf as 0 loads the table’s initial version.

Learn more

Community Discussion

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