Skip to content

Commit

Permalink
Return a dataframe?
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianfr committed Feb 12, 2024
1 parent c676864 commit c0e7967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spark/src/main/scala/ai/chronon/spark/TableUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ case class TableUtils(sparkSession: SparkSession) {
if (existingFunctions.nonEmpty) {
logger.warn(
s"The following function(s) already exist(s): ${existingFunctions.mkString(", ")}. Query may result in function redefinition.")
return null
return sparkSession.sql("SELECT NULL")
}
}
throw e
Expand Down

0 comments on commit c0e7967

Please sign in to comment.