Skip to content

Commit

Permalink
Metadata integration tests (#57)
Browse files Browse the repository at this point in the history
* add test for valid metadata v2

* add test for minimal valid table metadata v2

* test valied v1 table metadata

* Test for invalid schema id

* improve failing test

* missing sort oder test

* test for missing partition spec

* test missing partition id

* test missing schemas

* test unsupported version

* fix changes

* improve error message

* fix clippy warnings
  • Loading branch information
JanKaul authored Sep 15, 2023
1 parent 284daaa commit e984b1e
Show file tree
Hide file tree
Showing 11 changed files with 1,042 additions and 23 deletions.
2 changes: 1 addition & 1 deletion crates/iceberg/src/spec/snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pub struct Snapshot {
/// A string map that summarizes the snapshot changes, including operation.
summary: Summary,
/// ID of the table’s current schema when the snapshot was created.
#[builder(setter(strip_option))]
#[builder(setter(strip_option), default = "None")]
schema_id: Option<i64>,
}

Expand Down
Loading

0 comments on commit e984b1e

Please sign in to comment.