Skip to content

Commit

Permalink
Add Puffin FileMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
fqaiser94 committed Dec 7, 2024
1 parent 3b71074 commit b9c4c6f
Show file tree
Hide file tree
Showing 8 changed files with 982 additions and 1 deletion.
5 changes: 5 additions & 0 deletions crates/puffin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,13 @@ license = { workspace = true }
keywords = ["iceberg", "puffin"]

[dependencies]
bytes = { workspace = true }
iceberg = { workspace = true }
once_cell = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
zstd = { workspace = true }

[dev-dependencies]
tempfile = { workspace = true }
tokio = { workspace = true }
5 changes: 4 additions & 1 deletion crates/puffin/src/compression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@
// under the License.

use iceberg::{Error, ErrorKind, Result};
use serde::{Deserialize, Serialize};

#[derive(Debug, PartialEq, Eq, Clone, Copy, Default)]
#[derive(Debug, PartialEq, Eq, Serialize, Deserialize, Clone, Copy)]
#[serde(rename_all = "lowercase")]
#[derive(Default)]
/// Data compression formats
pub enum CompressionCodec {
#[default]
Expand Down
5 changes: 5 additions & 0 deletions crates/puffin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@

mod compression;
pub use compression::CompressionCodec;

mod metadata;

#[cfg(test)]
mod test_utils;
Loading

0 comments on commit b9c4c6f

Please sign in to comment.