Skip to content

Commit

Permalink
fix: drop non empty offline path (#3654)
Browse files Browse the repository at this point in the history
  • Loading branch information
vagetablechicken authored Dec 8, 2023
1 parent c081f28 commit 0c2592d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,7 @@ object JobInfoManager {
val offlineTableInfo = tableInfo.getOfflineTableInfo

val filePath = offlineTableInfo.getPath
if(offlineTableInfo.getDeepCopy) {

if(filePath.nonEmpty) {
if (filePath.startsWith("file://")) {
val dir = new File(filePath.substring(7))
logger.info(s"Try to delete the path ${filePath.substring(7)}")
Expand All @@ -217,7 +216,7 @@ object JobInfoManager {
throw new Exception(s"Get unsupported file path: $filePath")
}
} else {
logger.info(s"Do not delete file $filePath for non deep copy data")
logger.info(s"Do not delete for empty hard path")
}
}

Expand Down

0 comments on commit 0c2592d

Please sign in to comment.