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

add docstore version #1652

Merged
merged 2 commits into from
Nov 4, 2022
Merged

add docstore version #1652

merged 2 commits into from
Nov 4, 2022

Conversation

PSeitz
Copy link
Contributor

@PSeitz PSeitz commented Oct 27, 2022

closes #1589

@codecov-commenter
Copy link

Codecov Report

Merging #1652 (be40f78) into main (c24157f) will increase coverage by 0.04%.
The diff coverage is 94.13%.

@@            Coverage Diff             @@
##             main    #1652      +/-   ##
==========================================
+ Coverage   93.97%   94.02%   +0.04%     
==========================================
  Files         253      254       +1     
  Lines       47716    48160     +444     
==========================================
+ Hits        44843    45284     +441     
- Misses       2873     2876       +3     
Impacted Files Coverage Δ
fastfield_codecs/src/main.rs 0.52% <0.00%> (-0.01%) ⬇️
src/fastfield/writer.rs 88.52% <0.00%> (ø)
src/indexer/sorted_doc_id_multivalue_column.rs 95.00% <0.00%> (ø)
src/query/bitset/mod.rs 99.45% <ø> (ø)
src/query/mod.rs 100.00% <ø> (ø)
src/store/mod.rs 99.23% <ø> (ø)
src/fastfield/multivalued/writer.rs 98.86% <50.00%> (ø)
src/schema/field_type.rs 77.52% <50.00%> (+1.10%) ⬆️
src/fastfield/multivalued/reader.rs 83.17% <60.00%> (-2.40%) ⬇️
src/indexer/sorted_doc_id_column.rs 95.00% <66.66%> (ø)
... and 33 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

BinarySerializable::serialize(&self.offset, writer)?;
BinarySerializable::serialize(&self.decompressor.get_id(), writer)?;
writer.write_all(&[0; 15])?;
Ok(())
}

fn deserialize<R: io::Read>(reader: &mut R) -> io::Result<Self> {
let _doc_store_version = u32::deserialize(reader)?;
Copy link
Collaborator

@fulmicoton fulmicoton Nov 1, 2022

Choose a reason for hiding this comment

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

Can we have a check on the version?
(so that we have an error if we try to open a different version)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep, I added one

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.

add format version to doc store
3 participants