Skip to content

Commit

Permalink
Use File directly
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Jun 3, 2024
1 parent 4a52dc2 commit 1f23256
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public synchronized void dropTable(MetastoreContext metastoreContext, String dat
if (deleteData && table.getTableType().equals(MANAGED_TABLE.name())) {
for (String location : locations) {
if (location != null) {
File directory = new File(new Path(location).toUri());
File directory = new File(location);
checkArgument(isParentDir(directory, baseDirectory), "Table directory must be inside of the metastore base directory");
deleteDirectory(directory);
}
Expand Down

0 comments on commit 1f23256

Please sign in to comment.