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 d4703f4
Show file tree
Hide file tree
Showing 8 changed files with 982 additions and 3 deletions.
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 }
7 changes: 5 additions & 2 deletions crates/puffin/src/compression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@
// 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 {
pub(crate) enum CompressionCodec {
#[default]
/// No compression
None,
Expand Down
5 changes: 4 additions & 1 deletion crates/puffin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@
#![allow(dead_code)]

mod compression;
pub use compression::CompressionCodec;
mod metadata;

#[cfg(test)]
mod test_utils;
Loading

0 comments on commit d4703f4

Please sign in to comment.