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

[SIP] feat(iceberg): support event listener for Iceberg REST server #5002

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

Conversation

FANNG1
Copy link
Contributor

@FANNG1 FANNG1 commented Sep 24, 2024

What changes were proposed in this pull request?

This PR is a demo or POC, includes:

  1. Integrate Event listener system to Iceberg REST server
  2. Add CreateIcebergTableEvent and UpdateIcebergTableEvent
  3. Add IcebergEventLogger to show the ability to handle events

Why are the changes needed?

Fix: # (issue)

Does this PR introduce any user-facing change?

no

How was this patch tested?

  1. add configuration to add IcebergEventLogger in event listener
gravitino.eventListener.names = iceberg
gravitino.eventListener.iceberg.class = org.apache.gravitino.iceberg.extension.IcebergEventLogger
  1. run query will see event logs.

@FANNG1 FANNG1 marked this pull request as draft September 24, 2024 07:38
@FANNG1 FANNG1 changed the title [SIP] support event listener for Iceberg REST server [SIP] feat(iceberg): support event listener for Iceberg REST server Sep 24, 2024
.createTable(RESTUtil.decodeNamespace(namespace), createTableRequest));
.createTable(RESTUtil.decodeNamespace(namespace), createTableRequest);

eventBus.dispatchEvent(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

should be refactored to eventBus.dispatchPostEvent

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