Skip to content

Commit 7addc3f

Browse files
authored
feat(puffin): Parse Puffin FileMetadata (#765)
* 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
1 parent 105e513 commit 7addc3f

File tree

7 files changed

+943
-1
lines changed

7 files changed

+943
-1
lines changed

crates/iceberg/src/puffin/compression.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18+
use serde::{Deserialize, Serialize};
19+
1820
use crate::{Error, ErrorKind, Result};
1921

20-
#[derive(Debug, PartialEq, Eq, Clone, Copy, Default)]
2122
/// Data compression formats
23+
#[derive(Debug, PartialEq, Eq, Clone, Copy, Default, Serialize, Deserialize)]
24+
#[serde(rename_all = "lowercase")]
2225
pub enum CompressionCodec {
2326
#[default]
2427
/// No compression

0 commit comments

Comments
 (0)