Skip to content

Commit e5b6f6f

Browse files
update
Co-authored-by: Thomas Chow <[email protected]> Co-authored-by: Thomas Chow <[email protected]>
1 parent 89c47ff commit e5b6f6f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,7 @@ class TableUtils(@transient val sparkSession: SparkSession) extends Serializable
375375
| ---- end ----
376376
|""".stripMargin)
377377
try {
378-
val df = sparkSession.sql(query)
379-
df.coalesce(coalesceFactor * parallelism)
378+
sparkSession.sql(query).coalesce(coalesceFactor * parallelism)
380379
} catch {
381380
case e: AnalysisException if e.getMessage.contains(" already exists") =>
382381
logger.warn(s"Non-Fatal: ${e.getMessage}. Query may result in redefinition.")

0 commit comments

Comments
 (0)