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] Make listDeltaCompactedDeltaCheckpointFilesAndLatestChecksumFile reusable #3157

Merged
merged 2 commits into from
May 30, 2024

Conversation

dhruvarya-db
Copy link
Collaborator

@dhruvarya-db dhruvarya-db commented May 24, 2024

Which Delta project/connector is this regarding?

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

Description

Factors out the main logic from listDeltaCompactedDeltaCheckpointFilesAndLatestChecksumFile into a new function listFromFileSystemInternal which can potentially be reused by other callers. Also added a new test utility which runs tests with in-memory-tracking commit owner enabled.

How was this patch tested?

Existing tests should cover this.

Does this PR introduce any user-facing changes?

No

* Run the test against a [[TrackingCommitOwnerClient]] with backfill batch size =
* `batchBackfillSize`
*/
def testWithTrackingInMemoryCommitOwner(
Copy link
Collaborator

Choose a reason for hiding this comment

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

The other users of this utils class won't fully understand different commit owner implementations etc. Should we call it def testWithManagedCommits( instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sounds good, updated.

@vkorukanti vkorukanti merged commit 6421bc5 into delta-io:master May 30, 2024
10 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.

3 participants