Skip to content

Commit 7c8f335

Browse files
committed
fix
1 parent 9360059 commit 7c8f335

File tree

1 file changed

+1
-3
lines changed
  • rust/cubesqlplanner/cubesqlplanner/src/plan

1 file changed

+1
-3
lines changed

rust/cubesqlplanner/cubesqlplanner/src/plan/filter.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,11 @@ impl FilterItem {
116116

117117
FilterItem::Group(group) => match group.operator {
118118
FilterGroupOperator::Or => {
119-
// Для OR: если хоть одна ветка не ограничивает -> нет единого ограничения
120-
// Если все ограничивают и все одинаковые -> то это значение
121119
let mut candidate: Option<String> = None;
122120

123121
for child in &group.items {
124122
match child.find_single_value_restriction(symbol) {
125-
None => return None, // хотя бы одна альтернатива без фиксации => OR не фиксирует
123+
None => return None,
126124
Some(v) => {
127125
if let Some(prev) = &candidate {
128126
if prev != &v {

0 commit comments

Comments
 (0)