Skip to content

Commit d3670f1

Browse files
committed
feat(datafusion): adapt repartition to use project new _partition column
Signed-off-by: Florian Valeye <[email protected]>
1 parent d82e8c7 commit d3670f1

File tree

5 files changed

+160
-149
lines changed

5 files changed

+160
-149
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/integrations/datafusion/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ futures = { workspace = true }
3636
iceberg = { workspace = true }
3737
parquet = { workspace = true }
3838
tokio = { workspace = true }
39+
tracing = { workspace = true }
3940
uuid = { workspace = true }
4041

4142
[dev-dependencies]

crates/integrations/datafusion/src/physical_plan/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ pub(crate) mod commit;
1919
pub(crate) mod expr_to_predicate;
2020
pub(crate) mod metadata_scan;
2121
pub(crate) mod project;
22+
pub(crate) mod repartition;
2223
pub(crate) mod scan;
2324
pub(crate) mod write;
2425

2526
pub(crate) const DATA_FILES_COL_NAME: &str = "data_files";
2627

2728
pub use project::project_with_partition;
29+
pub use repartition::repartition;
2830
pub use scan::IcebergTableScan;

crates/integrations/datafusion/src/physical_plan/project.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ use iceberg::transform::BoxedTransformFunction;
3535
use crate::to_datafusion_error;
3636

3737
/// Column name for the combined partition values struct
38-
const PARTITION_VALUES_COLUMN: &str = "_partition";
38+
pub(crate) const PARTITION_VALUES_COLUMN: &str = "_partition";
3939

4040
/// Extends an ExecutionPlan with partition value calculations for Iceberg tables.
4141
///

0 commit comments

Comments
 (0)