databend icon indicating copy to clipboard operation
databend copied to clipboard

Improve semantic check of subquery in grouping context

Open leiysky opened this issue 3 years ago • 0 comments

For some invalid subqueries, we should raise reasonable error for them.

  • [ ] Subqueries with invalid outer reference from a grouping context: select (select t.a from t1) from t group by t.a+1.
  • [ ] Subqueries with nested aggregate functions: select max(select max(t.a) from t1) from t
  • ...

leiysky avatar Jul 29 '22 05:07 leiysky