We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc9ab6b commit 613263fCopy full SHA for 613263f
datafusion/proto/src/logical_plan/mod.rs
@@ -732,7 +732,7 @@ impl AsLogicalPlan for LogicalPlanNode {
732
)));
733
}
734
735
- let first = input_plans.pop().ok_or_else(|| DataFusionError::Internal(String::from(
+ let first = input_plans.drain(0..1).into_iter().next().ok_or_else(|| DataFusionError::Internal(String::from(
736
"Protobuf deserialization error, Union was require at least two input.",
737
)))?;
738
let mut builder = LogicalPlanBuilder::from(first);
0 commit comments