Skip to content

Commit

Permalink
[MINOR] Simplify CreateHoodieTableCommand logWarning (apache#9317)
Browse files Browse the repository at this point in the history
  • Loading branch information
cxzl25 committed Aug 7, 2023
1 parent bf09668 commit c127202
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,7 @@ case class CreateHoodieTableCommand(table: CatalogTable, ignoreIfExists: Boolean
CreateHoodieTableCommand.createTableInCatalog(sparkSession, hoodieCatalogTable, ignoreIfExists, queryAsProp)
} catch {
case NonFatal(e) =>
logWarning(s"Failed to create catalog table in metastore: ${e}")
val sw = new StringWriter
val pw = new PrintWriter(sw)
e.printStackTrace(pw)
logWarning(sw.toString)
logWarning("Failed to create catalog table in metastore", e)
}
Seq.empty[Row]
}
Expand Down

0 comments on commit c127202

Please sign in to comment.