Skip to content

Commit

Permalink
[#3028] fix incorrectly accessed static fields (#3184)
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?

relace static fields

### Why are the changes needed?
Fix: #3028

### Does this PR introduce _any_ user-facing change?
no
### How was this patch tested?
Use existing test cases in TestAuthorizationUtils.class

Co-authored-by: 韩望欣 <[email protected]>
  • Loading branch information
hanwxx and 韩望欣 authored Apr 25, 2024
1 parent 10a3e3e commit 269f8d7
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
import com.datastrato.gravitino.NameIdentifier;
import com.datastrato.gravitino.Namespace;
import com.datastrato.gravitino.exceptions.NoSuchMetalakeException;
import com.datastrato.gravitino.meta.CatalogEntity;
import com.datastrato.gravitino.meta.SchemaEntity;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -62,8 +60,7 @@ public static Namespace ofRoleNamespace(String metalake) {
}

public static Namespace ofGroupNamespace(String metalake) {
return Namespace.of(
metalake, CatalogEntity.SYSTEM_CATALOG_RESERVED_NAME, SchemaEntity.GROUP_SCHEMA_NAME);
return Namespace.of(metalake, Entity.SYSTEM_CATALOG_RESERVED_NAME, Entity.GROUP_SCHEMA_NAME);
}

public static Namespace ofUserNamespace(String metalake) {
Expand Down

0 comments on commit 269f8d7

Please sign in to comment.