Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#6474] improvement(storage): batch listing securable objects in RoleMetaService #6601

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

unknowntpo
Copy link
Contributor

@unknowntpo unknowntpo commented Mar 5, 2025

What changes were proposed in this pull request?

Batch retrieving securable objects for metalake, catalog, schema, table, model, topic, fileset (fileset has been implemented at #6455).

Why are the changes needed?

Improve performance when role is bounded to lots of SecurableObjects.

Fix: #6474

Does this PR introduce any user-facing change?

No.

How was this patch tested?

In TestSecurableObjects.testAllTypeSecurableObjects.

Related Issue and PR: #6238 #6455

@unknowntpo unknowntpo force-pushed the refactor-batch-listSecurableObjects branch 2 times, most recently from f1c449c to 6dfb680 Compare March 6, 2025 13:28
@unknowntpo unknowntpo force-pushed the refactor-batch-listSecurableObjects branch from 6dfb680 to 28b252a Compare March 7, 2025 01:30
@unknowntpo unknowntpo marked this pull request as ready for review March 7, 2025 01:30
@@ -88,6 +88,22 @@ public static SecurableObject ofTable(
return of(MetadataObject.Type.TABLE, names, privileges);
}

/**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Column isn't the securable object. So you should remove this.

@@ -120,6 +136,22 @@ public static SecurableObject ofFileset(
return of(MetadataObject.Type.FILESET, names, privileges);
}

/**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't support the privilege of the model now. You can remove this temporaly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants