Skip to content
Open
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
9 changes: 7 additions & 2 deletions crates/integrations/datafusion/src/physical_plan/commit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,16 @@ impl IcebergCommitExec {
input: Arc<dyn ExecutionPlan>,
schema: ArrowSchemaRef,
) -> Self {
let plan_properties = Self::compute_properties(schema.clone());
let count_schema = Self::make_count_schema();

let plan_properties = Self::compute_properties(Arc::clone(&count_schema));

Self {
table,
catalog,
input,
schema,
count_schema: Self::make_count_schema(),
count_schema,
plan_properties,
}
}
Expand Down Expand Up @@ -458,6 +460,9 @@ mod tests {
let commit_exec =
IcebergCommitExec::new(table.clone(), catalog.clone(), input_exec, arrow_schema);

// Verify Execution Plan schema matches the count schema
assert_eq!(commit_exec.schema(), IcebergCommitExec::make_count_schema());

// Execute the commit exec
let task_ctx = Arc::new(TaskContext::default());
let stream = commit_exec.execute(0, task_ctx)?;
Expand Down
Loading