Skip to content

Commit

Permalink
Fix typesize in vlen index_codecs metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
LDeakin committed Jul 19, 2024
1 parent 11c3e33 commit e5ca43b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/metadata/v3/codec/vlen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ mod tests {
fn codec_vlen_compressed() {
serde_json::from_str::<VlenCodecConfiguration>(r#"{
"data_codecs": [{"name": "bytes"},{"name": "blosc","configuration": {"cname": "zstd", "clevel":5,"shuffle": "bitshuffle", "typesize":1,"blocksize":0}}],
"index_codecs": [{"name": "bytes","configuration": { "endian": "little" }},{"name": "blosc","configuration":{"cname": "zstd", "clevel":5,"shuffle": "shuffle", "typesize":2,"blocksize":0}}],
"index_codecs": [{"name": "bytes","configuration": { "endian": "little" }},{"name": "blosc","configuration":{"cname": "zstd", "clevel":5,"shuffle": "shuffle", "typesize":4,"blocksize":0}}],
"index_data_type": "uint32"
}"#).unwrap();
}
Expand Down
4 changes: 2 additions & 2 deletions tests/cities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ fn cities() -> Result<(), Box<dyn Error>> {

let vlen_compressed_configuration: VlenCodecConfiguration = serde_json::from_str(r#"{
"data_codecs": [{"name": "bytes"},{"name": "blosc","configuration": {"cname": "zstd", "clevel":5,"shuffle": "bitshuffle", "typesize":1,"blocksize":0}}],
"index_codecs": [{"name": "bytes","configuration": { "endian": "little" }},{"name": "blosc","configuration":{"cname": "zstd", "clevel":5,"shuffle": "shuffle", "typesize":2,"blocksize":0}}],
"index_codecs": [{"name": "bytes","configuration": { "endian": "little" }},{"name": "blosc","configuration":{"cname": "zstd", "clevel":5,"shuffle": "shuffle", "typesize":4,"blocksize":0}}],
"index_data_type": "uint32"
}"#)?;
let vlen_compressed = Box::new(VlenCodec::new_with_configuration(&vlen_compressed_configuration)?);
Expand All @@ -126,7 +126,7 @@ fn cities() -> Result<(), Box<dyn Error>> {
// | vlen_interleaved | | 642196 |
// | vlen_interleaved | zstd 5 | 362626 |
// | vlen | | 642580 |
// | vlen | zstd 5 | 358296 |
// | vlen | zstd 5 | 346950 |

Ok(())
}

0 comments on commit e5ca43b

Please sign in to comment.