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

Refactor Iceberg Connector #21855

Merged
merged 3 commits into from
Feb 5, 2024

Conversation

imjalpreet
Copy link
Member

Description

Add wrappers for certain enums(FileFormat, FileContent, and ChangelogOperation) from Iceberg Library to Presto to simplify the presto protocol generation for Prestissimo

Motivation and Context

Simplify the presto protocol generation for Prestissimo required for #21765

Contributor checklist

  • Please make sure your submission complies with our development, formatting, commit message, and attribution guidelines.
  • PR description addresses the issue accurately and concisely. If the change is non-trivial, a GitHub Issue is referenced.
  • Documented new properties (with its default value), SQL syntax, functions, or other functionality.
  • If release notes are required, they follow the release notes guidelines.
  • Adequate tests were added if applicable.
  • CI passed.

Release Notes

Please follow release notes guidelines and fill in the release notes below.

== NO RELEASE NOTE ==

@imjalpreet imjalpreet self-assigned this Feb 3, 2024
@imjalpreet imjalpreet requested a review from a team as a code owner February 3, 2024 22:18
Copy link
Contributor

@yingsu00 yingsu00 left a comment

Choose a reason for hiding this comment

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

@imjalpreet Looks good, could you please add a comment in each wrapper class why we added them?

UPDATE_BEFORE,
UPDATE_AFTER;

public static ChangelogOperation fromIcebergChangelogOperation(org.apache.iceberg.ChangelogOperation operation)
Copy link
Contributor

Choose a reason for hiding this comment

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

static import

Copy link
Member Author

Choose a reason for hiding this comment

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

@yingsu00 We have to use the fully qualified class name since we have used the same enum name in Presto. Please let me know in case you are talking about something else.

@imjalpreet imjalpreet force-pushed the refactorIcebergConnector branch from 1485f17 to 62ad103 Compare February 5, 2024 08:52
@yingsu00 yingsu00 merged commit 6588bab into prestodb:master Feb 5, 2024
56 checks passed
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.

2 participants