xushiyan commented on a change in pull request #4490:
URL: https://github.com/apache/hudi/pull/4490#discussion_r777175282
##########
File path:
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/TruncateHoodieTableCommand.scala
##########
@@ -36,10 +38,13 @@ class TruncateHoodieTableCommand(
override def run(sparkSession: SparkSession): Seq[Row] = {
val hoodieCatalogTable = HoodieCatalogTable(sparkSession, tableIdentifier)
val properties = hoodieCatalogTable.tableConfig.getProps
- val tablePath = hoodieCatalogTable.tableLocation
- // Delete all data in the table directory
- super.run(sparkSession)
+ try {
+ // Delete all data in the table directory
+ super.run(sparkSession)
Review comment:
@YannByron looks like it deserves a log statement to help explain the
try catch scenario?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]