Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ aws-sdk-glue = "1.21.0"
bimap = "0.6"
bitvec = "1.0.1"
bytes = "1.5"
chrono = "0.4.34"
chrono = "~0.4.34"
derive_builder = "0.20.0"
either = "1"
env_logger = "0.11.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/iceberg/src/expr/predicate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl<T: Debug, const N: usize> Debug for LogicalExpression<T, N> {
}

impl<T, const N: usize> LogicalExpression<T, N> {
fn new(inputs: [Box<T>; N]) -> Self {
pub(crate) fn new(inputs: [Box<T>; N]) -> Self {
Self { inputs }
}

Expand Down
10 changes: 10 additions & 0 deletions crates/iceberg/src/spec/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ impl Manifest {
entries: entries.into_iter().map(Arc::new).collect(),
}
}

/// Get the ID for this Manifest's partition_spec [`PartitionSpec`]
pub fn partition_spec_id(&self) -> i32 {
self.metadata.partition_spec.spec_id
}
}

/// A manifest writer.
Expand Down Expand Up @@ -868,6 +873,11 @@ impl ManifestEntry {
&self.data_file.file_path
}

/// Get a reference to the Partition Struct of the data file of this manifest entry
pub fn get_partition_struct(&self) -> &Struct {
&self.data_file.partition
}

/// Inherit data from manifest list, such as snapshot id, sequence number.
pub(crate) fn inherit_data(&mut self, snapshot_entry: &ManifestFile) {
if self.snapshot_id.is_none() {
Expand Down