Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move more horizon planning to the operators (#13412)
* error out if we have aggregate gtid in handleAggr Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> Signed-off-by: Andres Taylor <andres@planetscale.com> * remove un-required for loop Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> Signed-off-by: Andres Taylor <andres@planetscale.com> * add GetSelectExprs to the operator interface and remove horizon/derived Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> Signed-off-by: Andres Taylor <andres@planetscale.com> * support distinct aggregations on the new horizon planner Signed-off-by: Andres Taylor <andres@planetscale.com> * stop pushing of aggregation filtering into derived tables Signed-off-by: Andres Taylor <andres@planetscale.com> * wip - enable derived tables in the new horizon planner Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> Signed-off-by: Andres Taylor <andres@planetscale.com> * Bring back support for union inside derived tables Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> Signed-off-by: Andres Taylor <andres@planetscale.com> * fix typo in error Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> Signed-off-by: Andres Taylor <andres@planetscale.com> * update test expectations Signed-off-by: Andres Taylor <andres@planetscale.com> * use semantics.RewriteDerivedTableExpression instead of manual rewriting of ColNames Signed-off-by: Andres Taylor <andres@planetscale.com> * work on making derived tables with aggregation work Signed-off-by: Andres Taylor <andres@planetscale.com> * refactor code Signed-off-by: Andres Taylor <andres@planetscale.com> * enable horizon planning in more situations Signed-off-by: Andres Taylor <andres@planetscale.com> * update test expectations Signed-off-by: Andres Taylor <andres@planetscale.com> * make sure to always use a method to create aggregate params Signed-off-by: Andres Taylor <andres@planetscale.com> * cleanup and refactoring Signed-off-by: Andres Taylor <andres@planetscale.com> * use weight strings for min/max Signed-off-by: Andres Taylor <andres@planetscale.com> * update list of error code Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> * disallow aggregation on top of aggregation with a clearer error message Signed-off-by: Andres Taylor <andres@planetscale.com> * fail min/max queries on types we cant compare Signed-off-by: Andres Taylor <andres@planetscale.com> * test: remove pattern not used Signed-off-by: Andres Taylor <andres@planetscale.com> * spread table id through derived tables Signed-off-by: Andres Taylor <andres@planetscale.com> * add ordering bottom up so the order can be re-used Signed-off-by: Andres Taylor <andres@planetscale.com> * unify Derived and Horizon into a single struct Signed-off-by: Andres Taylor <andres@planetscale.com> * refactor: aggregation-pushing Change the aggregation type when pushed down and not after the fact. Signed-off-by: Andres Taylor <andres@planetscale.com> * add support handling sum(distinct x) and count(distinct x) on top of joins Signed-off-by: Andres Taylor <andres@planetscale.com> --------- Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> Signed-off-by: Andres Taylor <andres@planetscale.com> Co-authored-by: Andres Taylor <andres@planetscale.com>
- Loading branch information