File tree 1 file changed +7
-4
lines changed
spark/src/main/scala/ai/chronon/spark
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -158,9 +158,11 @@ class TableUtils(@transient val sparkSession: SparkSession) extends Serializable
158
158
159
159
if (! tableReachable(tableName)) return Seq .empty[Map [String , String ]]
160
160
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. " ))
164
166
val partitionSeq = format.partitions(tableName)(sparkSession)
165
167
166
168
if (partitionColumnsFilter.isEmpty) {
@@ -180,7 +182,8 @@ class TableUtils(@transient val sparkSession: SparkSession) extends Serializable
180
182
subPartitionsFilter : Map [String , String ] = Map .empty,
181
183
partitionColumnName : String = partitionColumn): Seq [String ] = {
182
184
183
- tableFormatProvider.readFormat(tableName)
185
+ tableFormatProvider
186
+ .readFormat(tableName)
184
187
.map((format) => {
185
188
val partitions = format.primaryPartitions(tableName, partitionColumnName, subPartitionsFilter)(sparkSession)
186
189
You can’t perform that action at this time.
0 commit comments