Skip to content

Commit 0ddc9d9

Browse files
fmt and rebase
Co-authored-by: Thomas Chow <[email protected]>
1 parent af9a681 commit 0ddc9d9

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

spark/src/main/scala/ai/chronon/spark/TableUtils.scala

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,11 @@ class TableUtils(@transient val sparkSession: SparkSession) extends Serializable
158158

159159
if (!tableReachable(tableName)) return Seq.empty[Map[String, String]]
160160

161-
val format = tableFormatProvider.readFormat(tableName).getOrElse(
162-
throw new IllegalStateException(
163-
s"Could not determine read format of table ${tableName}. It is no longer reachable."))
161+
val format = tableFormatProvider
162+
.readFormat(tableName)
163+
.getOrElse(
164+
throw new IllegalStateException(
165+
s"Could not determine read format of table ${tableName}. It is no longer reachable."))
164166
val partitionSeq = format.partitions(tableName)(sparkSession)
165167

166168
if (partitionColumnsFilter.isEmpty) {
@@ -180,7 +182,8 @@ class TableUtils(@transient val sparkSession: SparkSession) extends Serializable
180182
subPartitionsFilter: Map[String, String] = Map.empty,
181183
partitionColumnName: String = partitionColumn): Seq[String] = {
182184

183-
tableFormatProvider.readFormat(tableName)
185+
tableFormatProvider
186+
.readFormat(tableName)
184187
.map((format) => {
185188
val partitions = format.primaryPartitions(tableName, partitionColumnName, subPartitionsFilter)(sparkSession)
186189

0 commit comments

Comments
 (0)