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 e206db5 commit 3dfda8fCopy full SHA for 3dfda8f
src/rewrite/normal_form.rs
@@ -496,8 +496,19 @@ impl Predicate {
496
let range = self
497
.eq_class_idx_by_column
498
.get(c)
499
- .and_then(|&idx| self.ranges_by_equivalence_class.get_mut(idx))
500
- .unwrap();
+ .ok_or_else(|| {
+ DataFusionError::Plan(format!("column {c} not found in equivalence classes"))
501
+ })
502
+ .and_then(|&idx| {
503
+ self.ranges_by_equivalence_class
504
+ .get_mut(idx)
505
506
+ DataFusionError::Plan(format!(
507
+ "range not found class not found for column {c} with equivalence class {:?}", self.eq_classes.get(idx)
508
+ ))
509
510
+ })?;
511
+
512
let new_range = match op {
513
Operator::Eq => Interval::try_new(value.clone(), value.clone()),
514
Operator::LtEq => {
0 commit comments