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

[Kernel] Consolidate listing utilities code and simplify SnapshotManager log segment error case #4035

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

scottsand-db
Copy link
Collaborator

Which Delta project/connector is this regarding?

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

Description

We used to have several duplicated log directory listing utilities. This PR cleans that up so there's just one utility method.

I also got rid of the listing utility that returns an Optional<List<FileStatus>>. If we cannot find the _delta_log folder, we throw an exception. If the _delta_log folder is empty, we should also throw an exception.

How was this patch tested?

Does this PR introduce any user-facing changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant