Skip to content

fix: resolve_latest_location converts errors to not_found unconditionally#6248

Merged
wkalt merged 1 commit intolance-format:mainfrom
wkalt:fix/propagate-real-errors-from-resolve-latest-location
Mar 23, 2026
Merged

fix: resolve_latest_location converts errors to not_found unconditionally#6248
wkalt merged 1 commit intolance-format:mainfrom
wkalt:fix/propagate-real-errors-from-resolve-latest-location

Conversation

@wkalt
Copy link
Contributor

@wkalt wkalt commented Mar 21, 2026

resolve_latest_location can fail for many reasons (I/O errors, permission errors, network failures), but the error was unconditionally wrapped as DatasetNotFound. Now only NotFound errors are converted to DatasetNotFound; all other errors propagate with their original type.

@github-actions github-actions bot added the bug Something isn't working label Mar 21, 2026
@github-actions
Copy link
Contributor

PR Review

Clean, focused bugfix. The change correctly narrows the DatasetNotFound wrapping to only Error::NotFound variants, letting I/O, permission, and network errors propagate with their original type. The test with a custom ErroringCommitHandler directly validates the fix.

No issues found. LGTM.

🤖 Generated with Claude Code

@codecov
Copy link

codecov bot commented Mar 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

… dataset

resolve_latest_location can fail for many reasons (I/O errors, permission
errors, network failures), but the error was unconditionally wrapped as
DatasetNotFound. Now only NotFound errors are converted to DatasetNotFound;
all other errors propagate with their original type.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@wkalt wkalt force-pushed the fix/propagate-real-errors-from-resolve-latest-location branch from 7d88f0b to f72185e Compare March 22, 2026 03:37
Copy link
Member

@westonpace westonpace left a comment

Choose a reason for hiding this comment

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

Nice improvement

@wkalt wkalt merged commit baa13ab into lance-format:main Mar 23, 2026
38 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants