andygrove opened a new issue, #3314:
URL: https://github.com/apache/arrow-datafusion/issues/3314
**Is your feature request related to a problem or challenge? Please describe
what you are trying to do.**
```
"/home/andy/git/apache/arrow-datafusion/datafusion/optimizer/src/common_subexpr_eliminate.rs":111
new_expr.pop().unwrap(),
"/home/andy/git/apache/arrow-datafusion/datafusion/optimizer/src/common_subexpr_eliminate.rs":145
predicate: new_expr.pop().unwrap().pop().unwrap(),
"/home/andy/git/apache/arrow-datafusion/datafusion/optimizer/src/common_subexpr_eliminate.rs":167
window_expr: new_expr.pop().unwrap(),
"/home/andy/git/apache/arrow-datafusion/datafusion/optimizer/src/common_subexpr_eliminate.rs":189
let new_aggr_expr = new_expr.pop().unwrap();
"/home/andy/git/apache/arrow-datafusion/datafusion/optimizer/src/common_subexpr_eliminate.rs":190
let new_group_expr = new_expr.pop().unwrap();
"/home/andy/git/apache/arrow-datafusion/datafusion/optimizer/src/common_subexpr_eliminate.rs":212
expr: new_expr.pop().unwrap(),
"/home/andy/git/apache/arrow-datafusion/datafusion/optimizer/src/common_subexpr_eliminate.rs":276
let (expr, _, data_type) = expr_set.get(&id).unwrap();
"/home/andy/git/apache/arrow-datafusion/datafusion/optimizer/src/common_subexpr_eliminate.rs":557
unreachable!("Enter mark should paired with node number");
"/home/andy/git/apache/arrow-datafusion/datafusion/optimizer/src/common_subexpr_eliminate.rs":655
let (_, counter, _) = self.expr_set.get(curr_id).unwrap();
"/home/andy/git/apache/arrow-datafusion/datafusion/optimizer/src/common_subexpr_eliminate.rs":676
|| self.expr_set.get(id).unwrap().1 <= 1
"/home/andy/git/apache/arrow-datafusion/datafusion/optimizer/src/filter_push_down.rs":180
_ => unreachable!("lr_is_preserved only valid for JOIN nodes"),
"/home/andy/git/apache/arrow-datafusion/datafusion/optimizer/src/filter_push_down.rs":195
JoinType::Semi | JoinType::Anti => unreachable!(
"/home/andy/git/apache/arrow-datafusion/datafusion/optimizer/src/filter_push_down.rs":200
unreachable!("on_lr_is_preserved cannot be applied to CROSSJOIN
nodes")
"/home/andy/git/apache/arrow-datafusion/datafusion/optimizer/src/filter_push_down.rs":202
_ => unreachable!("on_lr_is_preserved only valid for JOIN nodes"),
"/home/andy/git/apache/arrow-datafusion/datafusion/optimizer/src/filter_push_down.rs":314
.chain(once(on_to_keep.into_iter().reduce(Expr::and).unwrap()))
"/home/andy/git/apache/arrow-datafusion/datafusion/optimizer/src/simplify_expressions.rs":172
_ => panic!("Expected boolean literal, got {:?}", expr),
"/home/andy/git/apache/arrow-datafusion/datafusion/optimizer/src/simplify_expressions.rs":393
if self.can_evaluate.pop().unwrap() {
"/home/andy/git/apache/arrow-datafusion/datafusion/optimizer/src/single_distinct_to_groupby.rs":176
fields_set.insert(expr.name(input.schema()).unwrap());
```
**Describe the solution you'd like**
Use `Result` instead
**Describe alternatives you've considered**
None
**Additional context**
Generated by https://github.com/andygrove/no-need-to-panic
--
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]