Skip to content

Commit 613263f

Browse files
committed
fix(cube): Union serialization breaks input order
1 parent fc9ab6b commit 613263f

File tree

1 file changed

+1
-1
lines changed
  • datafusion/proto/src/logical_plan

1 file changed

+1
-1
lines changed

datafusion/proto/src/logical_plan/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ impl AsLogicalPlan for LogicalPlanNode {
732732
)));
733733
}
734734

735-
let first = input_plans.pop().ok_or_else(|| DataFusionError::Internal(String::from(
735+
let first = input_plans.drain(0..1).into_iter().next().ok_or_else(|| DataFusionError::Internal(String::from(
736736
"Protobuf deserialization error, Union was require at least two input.",
737737
)))?;
738738
let mut builder = LogicalPlanBuilder::from(first);

0 commit comments

Comments
 (0)