jackwener commented on code in PR #5336:
URL: https://github.com/apache/arrow-datafusion/pull/5336#discussion_r1111223465


##########
datafusion/optimizer/src/propagate_empty_relation.rs:
##########
@@ -149,14 +149,11 @@ fn binary_plan_children_is_empty(plan: &LogicalPlan) -> 
Result<(bool, bool)> {
     // all binary-plan need to deal with separately.
     match inputs.len() {
         2 => {
-            let left = inputs.get(0).unwrap();
-            let right = inputs.get(1).unwrap();
-
-            let left_empty = match left {
+            let left_empty = match inputs[0] {

Review Comment:
   resolved it. thanks @Dandandan 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to