Repository navigation
Conversation
Read LATEST directly while retaining snapshot existence checks and listing reconciliation. Check the directory only when the hint is missing, retaining the empty-table path for legacy OSS without directory listing support. Keep unreadable hints distinct from genuinely empty tables and reject remotely expired snapshots even when their bytes remain cached. Co-Authored-By: Codex <noreply@anthropic.com> AI-Model: gpt-6 AI-Contributed/Feature: 45/45 AI-Contributed/UT: 156/156
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
A filesystem snapshot lookup currently probes the snapshot directory and
LATESTbefore reading the hint, even though opening the hint already reports a missing object. ReadLATESTdirectly and reconcile an empty, stale, or corrupt hint with the snapshot listing. When the hint is missing, retain the directory existence check so an absent directory still returns an empty table without requiring unsupported directory listing on legacy OSS/PyArrow < 16.Keep the current and next snapshot existence checks. Cached snapshot bytes must not revive a snapshot deleted by another process. A hint or listing permission/service error must not be treated as proof of an empty table; the existing recovery from an unreadable hint through a readable snapshot listing is preserved. Catalog-provided snapshot loaders are unchanged.
Tests
FileIO.existscalls on the base revision (directory, hint, current snapshot, next snapshot); after the change it observes only the two snapshot checks, with identical snapshot contents and no listing.RuntimeError not raised).git diff --check: passed.FileNotFoundErrorand an empty listing producesNone; HTTP 403 is anOSErrorand an empty listing still raises, preserving the fail-closed behavior. This does not require cloud credentials and is not a live OSS benchmark.The call-count regression measures SnapshotManager-level probes, not a guaranteed HTTP request count for every backend. No new end-to-end speedup is claimed. No API, configuration, or storage-format changes.