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

[Spark] Makes CommitOwnerClient independent of Delta Spark dependencies #3002

Merged

Conversation

LukasRupprecht
Copy link
Contributor

@LukasRupprecht LukasRupprecht commented May 1, 2024

Which Delta project/connector is this regarding?

  • Spark
  • Standalone
  • Flink
  • Kernel
  • Other (fill in here)

Description

This PR is the first in a series of PRs that refactors the current CommitOwnerClient interface to become its own module. This is similar to storage module that currently exists and contains the LogStore interface and its implementations. In this PR, we remove any Delta Spark dependencies from the CommitOwnerClient in preparation for it to be moved outside of Delta Spark.

How was this patch tested?

Added tests to check equivalence of newly introduced AbstractProtocol/AbstractMetadata with Protocol/Metadata.

Does this PR introduce any user-facing changes?

No


/**
* We expect the Protocol action to have the same fields as AbstractProtocol (part of the
* CommitStore interface). With this if any change has happened in the Protocol of the table,
Copy link
Collaborator

Choose a reason for hiding this comment

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

CommitStore has been replaced with Commit owner / ComitOwnerClient -- depending on the context in the entire code/comments. Could we follow the same convention here as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated to reflect the new naming.

@allisonport-db allisonport-db merged commit eba5d65 into delta-io:master May 2, 2024
8 checks passed
@LukasRupprecht LukasRupprecht deleted the independent-commit-owner-client branch May 2, 2024 17:29
scottsand-db pushed a commit that referenced this pull request May 7, 2024
…duces getters (#3033)

#### Which Delta project/connector is this regarding?

- [x] Spark
- [ ] Standalone
- [ ] Flink
- [ ] Kernel
- [ ] Other (fill in here)

## Description

This is the second PR in a series of PRs to move the current CommitOwner
interface to its own module. PR1 is
[here](#3002).

This PR makes the fields of all CommitOwner-related classes private and
forces callers to use getters to access the fields. This is needed in
preparation for making the CommitOwner module a Java module (the same as
the existing LogStore module) and to follow Java best practices to keep
fields private and only allow access through getters.

## How was this patch tested?

Simple refactor so existing tests are sufficient.

## Does this PR introduce _any_ user-facing changes?

No
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.

None yet

3 participants