Skip to content

Commit 16330a3

Browse files
committed
fix(query): fix join subquery scalar rewrite
1 parent 99d4ab2 commit 16330a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/query/sql/src/planner/semantic/type_check.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3183,7 +3183,8 @@ impl<'a> TypeChecker<'a> {
31833183
.contains(func.name.to_string());
31843184
}
31853185
fn enter_expr(&mut self, expr: &Expr) {
3186-
self.contain_agg = matches!(expr, Expr::CountAll { window: None, .. });
3186+
self.contain_agg = self.contain_agg
3187+
|| matches!(expr, Expr::CountAll { window: None, .. });
31873188
}
31883189
}
31893190
let mut visitor = AggFuncVisitor { contain_agg: false };

0 commit comments

Comments
 (0)