This topic demonstrates how to view the history of a Delta table.

  • Scala
    import io.delta.tables._
    
    val deltaTable = DeltaTable.forPath(spark, pathToTable)
    
    val fullHistoryDF = deltaTable.history() // Obtain the full history of the table.
    val lastOperationDF = deltaTable.history(1) // Obtain the last operation only.
  • SQL
    DESCRIBE HISTORY table [LIMIT 1]