Skip to content

Commit

Permalink
[apache#6133] Improvement(core): Supports get Fileset schema location…
Browse files Browse the repository at this point in the history
… in the AuthorizationUtils

use StringUtils replace ==null.
  • Loading branch information
Abyss-lord committed Jan 13, 2025
1 parent accfc59 commit 1358bae
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ public static List<String> getMetadataObjectLocation(
nameIdentifier -> {
Fileset fileset = filesetCatalog.loadFileset(nameIdentifier);
String filesetLocation = fileset.storageLocation();
if (filesetLocation != null && !filesetLocation.isEmpty())
if (!StringUtils.isNotBlank(filesetLocation))
locations.add(filesetLocation);
});
}
Expand All @@ -545,7 +545,7 @@ public static List<String> getMetadataObjectLocation(
Table table = GravitinoEnv.getInstance().tableDispatcher().loadTable(ident);
if (table.properties().containsKey(HiveConstants.LOCATION)) {
String tableLocation = table.properties().get(HiveConstants.LOCATION);
if (tableLocation != null && tableLocation.isEmpty()) {
if (StringUtils.isNotBlank(tableLocation)) {
locations.add(tableLocation);
} else {
LOG.warn("Table %s location is not found", ident);
Expand Down

0 comments on commit 1358bae

Please sign in to comment.