Skip to content

Commit

Permalink
feat(puffin): Parse Puffin FileMetadata (#765)
Browse files Browse the repository at this point in the history
* Add Puffin FileMetadata

* Fix comment locations

* Put Ok(()) branch first

* Use map_err

* Inline err_out_of_bounds function

* Use ok_or_else

* Remove #[rustfmt::skip]

* Rename input_fields to fields

* Simplify flag parsing

* Remove unnecessary reference

* Make BlobMetadata.length a u64 (instead of usize)

* Replace from with as
  • Loading branch information
fqaiser94 authored Jan 14, 2025
1 parent 105e513 commit 7addc3f
Show file tree
Hide file tree
Showing 7 changed files with 943 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/iceberg/src/puffin/compression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@
// specific language governing permissions and limitations
// under the License.

use serde::{Deserialize, Serialize};

use crate::{Error, ErrorKind, Result};

#[derive(Debug, PartialEq, Eq, Clone, Copy, Default)]
/// Data compression formats
#[derive(Debug, PartialEq, Eq, Clone, Copy, Default, Serialize, Deserialize)]
#[serde(rename_all = "lowercase")]
pub enum CompressionCodec {
#[default]
/// No compression
Expand Down
Loading

0 comments on commit 7addc3f

Please sign in to comment.