Skip to content

Commit

Permalink
Remind my future self how to grab the DeltaLog table
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPowers committed Oct 8, 2019
1 parent 79ade6f commit 0ce6616
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ import org.apache.spark.sql.functions._

object DeltaLogHelpers {

// get the deltaLogDF with this code
// DeltaLog
// .forTable(spark, path)
// .snapshot
// .allFiles
def num1GbPartitions(deltaLogDF: DataFrame, minNumPartitions: Int = 1): Int = {

val numBytes = deltaLogDF
Expand Down

0 comments on commit 0ce6616

Please sign in to comment.