Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ homepage = "https://github.com/apache/hudi-rs"
repository = "https://github.com/apache/hudi-rs"

[workspace.dependencies]
log = "^0.4"

# arrow
arrow = { version = "= 52.2.0", features = ["pyarrow"] }
arrow-arith = { version = "= 52.2.0" }
Expand Down
4 changes: 2 additions & 2 deletions crates/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ tokio = { workspace = true }
# datafusion
datafusion = { workspace = true, optional = true }
datafusion-expr = { workspace = true, optional = true }
datafusion-common = { workspace = true }
datafusion-common = { workspace = true, optional = true }
datafusion-physical-expr = { workspace = true, optional = true }
log = "0.4.22"
log = { workspace = true}

[dev-dependencies]
hudi-tests = { path = "../tests" }
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/config/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ impl ConfigParser for HudiTableConfig {
match self {
Self::DatabaseName => Some(HudiConfigValue::String("default".to_string())),
Self::DropsPartitionFields => Some(HudiConfigValue::Boolean(false)),
Self::PopulatesMetaFields => Some(HudiConfigValue::Boolean(true)),
Self::PartitionFields => Some(HudiConfigValue::List(vec!["".to_string()])),
Self::PopulatesMetaFields => Some(HudiConfigValue::Boolean(true)),
_ => None,
}
}
Expand Down
1 change: 0 additions & 1 deletion crates/core/src/table/fs_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
configs: Arc<HudiConfigs>,
) -> Result<Self> {
let storage = Storage::new(base_url, &storage_options)?;
let partition_to_file_groups = Arc::new(DashMap::new());

Check warning on line 50 in crates/core/src/table/fs_view.rs

View check run for this annotation

Codecov / codecov/patch

crates/core/src/table/fs_view.rs#L50

Added line #L50 was not covered by tests
Ok(FileSystemView {
configs,
storage,
Expand Down Expand Up @@ -169,7 +169,7 @@
for mut fgs in self.partition_to_file_groups.iter_mut() {
let fgs_ref = fgs.value_mut();
for fg in fgs_ref {
if excluding_file_groups.contains(fg) {

Check warning on line 172 in crates/core/src/table/fs_view.rs

View check run for this annotation

Codecov / codecov/patch

crates/core/src/table/fs_view.rs#L172

Added line #L172 was not covered by tests
continue;
}
if let Some(fsl) = fg.get_file_slice_mut_as_of(timestamp) {
Expand All @@ -180,7 +180,6 @@
}
}
}
assert!(!self.partition_to_file_groups.is_empty());
Ok(file_slices)
}

Expand Down
1 change: 1 addition & 0 deletions crates/core/src/table/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ impl Table {
}
}

#[cfg(test)]
pub fn reset(&mut self) {
self.file_system_view.reset()
}
Expand Down
Loading
Loading