Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions spark/src/main/scala/ai/chronon/spark/TableUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class TableUtils(@transient val sparkSession: SparkSession) extends Serializable

// transient because the format provider is not always serializable.
// for example, BigQueryImpl during reflecting with bq flavor
@transient private implicit lazy val tableFormatProvider: FormatProvider = FormatProvider.from(sparkSession)
@transient private lazy val tableFormatProvider: FormatProvider = FormatProvider.from(sparkSession)

private val cacheLevel: Option[StorageLevel] = Try {
if (cacheLevelString == "NONE") None
Expand Down Expand Up @@ -722,13 +722,6 @@ class TableUtils(@transient val sparkSession: SparkSession) extends Serializable
scanDf
}
}

def partitionRange(table: String): PartitionRange = {
val parts = partitions(table)
val minPartition = if (parts.isEmpty) null else parts.min
val maxPartition = if (parts.isEmpty) null else parts.max
PartitionRange(minPartition, maxPartition)(partitionSpec)
}
}

object TableUtils {
Expand Down