Skip to content

Commit

Permalink
merge schema
Browse files Browse the repository at this point in the history
Signed-off-by: Prithvi Kannan <prithvi.kannan@databricks.com>
  • Loading branch information
prithvikannan committed Dec 12, 2023
1 parent f91cf2e commit 25e311a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mlflow/models/evaluation/default_evaluator.py
Expand Up @@ -1647,9 +1647,9 @@ def _log_eval_table(self):
if self.eval_results_path:
eval_table_spark = self.spark_session.createDataFrame(data)
try:
eval_table_spark.write.mode(self.eval_results_mode).format("delta").saveAsTable(
self.eval_results_path
)
eval_table_spark.write.mode(self.eval_results_mode).option(
"mergeSchema", "true"
).format("delta").saveAsTable(self.eval_results_path)
except Exception as e:
_logger.info("Saving eval table to delta table failed. Reason: %s", e)

Expand Down

0 comments on commit 25e311a

Please sign in to comment.