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

Policy Entity, Policy Types, and PolicyMappingRecord with Persistence Impl #1104

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

HonahX
Copy link
Contributor

@HonahX HonahX commented Mar 3, 2025

Depends on #1133

Pending on another upcoming persistence refactor, but early feedback and discussions are welcome!

This PR introduces new persistence interfaces and impl for PolicyMappingRecords for supporting Policy Store in Polaris, as discussed in apache/polaris#1059.

Key Additions:

  • PolarisPolicyMappingRecord – Stores the mapping between a policy and a target entity. For example, when a user attaches a policy to a table, a new record will be created and persisted.
  • PolicyMappingPersistence: Interface for interacting with the Polaris persistence backend for Policy Mapping operations
  • PolarisPolicyMappingManager: Interfaces for managing policy mapping in Polaris (attach/detach/lookup mappings)

Persistence Implementation:

  • InMemory: PolarisTreeMapStoreSessionImpl
  • SQL: PolarisEclipseLinkMetaStoreSessionImpl

Since persistence refactoring is in progress, I will continue updating this PR to align with the new model as it evolves.

cc: @flyrain

@HonahX HonahX changed the title [PoC] Policy Entity, Policy Types, and PolicyMappingRecord [PoC] Policy Entity, Policy Types, and PolicyMappingRecord with Persistence Impl Mar 3, 2025
@HonahX HonahX changed the title [PoC] Policy Entity, Policy Types, and PolicyMappingRecord with Persistence Impl [WIP] Policy Entity, Policy Types, and PolicyMappingRecord with Persistence Impl Mar 4, 2025
@HonahX HonahX force-pushed the policy_type_entity_and_mapping_record branch from 6a0ee78 to ebfcb90 Compare March 5, 2025 07:08
@HonahX HonahX changed the title [WIP] Policy Entity, Policy Types, and PolicyMappingRecord with Persistence Impl Policy Entity, Policy Types, and PolicyMappingRecord with Persistence Impl Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant