read_batch set include_deleted to false by default when reading a version #1419
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.
Fixes #1385
Similar to a normal read,
batch_read
now setsinclude_deleted
to false when looking for an index key viafind_index_key_for_version_id
test_batch_read_metadata_multi
asself._versions.items()
has versions that have already been deleted, the test tries to lookup the deleted versions and tries to asserts that they are foundtest_batch_read_snapshot
as theVersionStoreComparison
creates a test sequence where it first deletes a symbol, then withtest_batch_read_snapshot
checks that the versions in the snapshot match the versions read withbatch_read
which is not the expected behaviour because deleted versions will not be returned by batch read.test_batch_read_tombstoned_version_via_snapshot
as, withbatch_read(symbol, as_of=[version])
, we shouldn't expect to read a snapshotted version that has been deleted.Checklist
Checklist for code changes...