Skip to content
Merged
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 AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ input
→ project_with_partition partitioned tables only: appends a `_partition` struct column computed by `PartitionExpr`
→ repartition hash on `_partition` for identity/bucket transforms, otherwise round-robin; uses session target_partitions
→ sort_by_partition only when table property `write.datafusion.fanout.enabled` is false (default: true)
→ IcebergWriteExec per partition: `TaskWriter` writes Parquet files and emits JSON-serialized DataFiles in a `data_files` column
→ IcebergWriteExec per partition: `TaskWriter` writes Parquet files and emits Avro-serialized DataFiles in a `data_files: LargeBinary` column
→ CoalescePartitionsExec
→ IcebergCommitExec single partition: one `fast_append` transaction; outputs a `count` row
```
Expand Down
110 changes: 94 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ datafusion = "55.0.0"
datafusion-cli = "55.0.0"
iceberg-datafusion = { path = "crates/datafusion" }
datafusion-sqllogictest = "55.0.0"
iceberg = { git = "https://github.com/apache/iceberg-rust", rev = "8cb2adeddb4f8da1ca7bd86ca303337f011c12e2" }
iceberg-catalog-rest = { git = "https://github.com/apache/iceberg-rust", rev = "8cb2adeddb4f8da1ca7bd86ca303337f011c12e2" }
iceberg = { git = "https://github.com/apache/iceberg-rust", rev = "5b82ab99aeaf50bf4f5b3b776ac9cd6380a5f3e3" }
iceberg-catalog-rest = { git = "https://github.com/apache/iceberg-rust", rev = "5b82ab99aeaf50bf4f5b3b776ac9cd6380a5f3e3" }
tokio = { version = "1.47", default-features = false, features = ["sync", "rt-multi-thread"] }
toml = "1.1"
tracing = "0.1.41"
Expand Down
11 changes: 9 additions & 2 deletions crates/datafusion/src/table_provider/catalog_table_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ mod tests {
async fn get_partitioned_test_catalog_and_table(
fanout_enabled: Option<bool>,
) -> (Arc<dyn Catalog>, NamespaceIdent, String, TempDir) {
use iceberg::spec::{Transform, UnboundPartitionSpec};
use iceberg::spec::{Transform, UnboundPartitionField, UnboundPartitionSpec};

let temp_dir = TempDir::new().unwrap();
let warehouse_path = temp_dir.path().to_str().unwrap().to_string();
Expand Down Expand Up @@ -644,7 +644,14 @@ mod tests {

let partition_spec = UnboundPartitionSpec::builder()
.with_spec_id(0)
.add_partition_field(2, "category", Transform::Identity)
.add_partition_field(
UnboundPartitionField::builder()
.source_ids(vec![2])
.name("category")
.transform(Transform::Identity)
.build()
.unwrap(),
)
.unwrap()
.build();

Expand Down
Loading
Loading