Skip to content

Commit 7e36243

Browse files
authored
chore: define deletion vector type constant (#1310)
## Which issue does this PR close? This PR adds deletion vector type constant (which is the counterpart for already-defined `APACHE_DATASKETCHES_THETA_V1`). Reference: https://iceberg.apache.org/puffin-spec/#deletion-vector-v1-blob-type
1 parent bff4a2a commit 7e36243

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

crates/iceberg/src/puffin/blob.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ use std::collections::HashMap;
1919

2020
/// A serialized form of a "compact" Theta sketch produced by the Apache DataSketches library.
2121
pub const APACHE_DATASKETCHES_THETA_V1: &str = "apache-datasketches-theta-v1";
22+
/// A serialized form of a deletion vector.
23+
pub const DELETION_VECTOR_V1: &str = "deletion-vector-v1";
2224

2325
/// The blob
2426
#[derive(Debug, PartialEq, Clone)]

crates/iceberg/src/puffin/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#![deny(missing_docs)]
2121

2222
mod blob;
23-
pub use blob::{Blob, APACHE_DATASKETCHES_THETA_V1};
23+
pub use blob::{Blob, APACHE_DATASKETCHES_THETA_V1, DELETION_VECTOR_V1};
2424

2525
mod compression;
2626
pub use compression::CompressionCodec;

0 commit comments

Comments
 (0)