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 <[email protected]> Signed-off-by: Andres Taylor <[email protected]> * remove un-required for loop Signed-off-by: Florent Poinsard <[email protected]> Signed-off-by: Andres Taylor <[email protected]> * add GetSelectExprs to the operator interface and remove horizon/derived Signed-off-by: Florent Poinsard <[email protected]> Signed-off-by: Andres Taylor <[email protected]> * support distinct aggregations on the new horizon planner Signed-off-by: Andres Taylor <[email protected]> * stop pushing of aggregation filtering into derived tables Signed-off-by: Andres Taylor <[email protected]> * wip - enable derived tables in the new horizon planner Signed-off-by: Florent Poinsard <[email protected]> Signed-off-by: Andres Taylor <[email protected]> * Bring back support for union inside derived tables Signed-off-by: Florent Poinsard <[email protected]> Signed-off-by: Andres Taylor <[email protected]> * fix typo in error Signed-off-by: Florent Poinsard <[email protected]> Signed-off-by: Andres Taylor <[email protected]> * update test expectations Signed-off-by: Andres Taylor <[email protected]> * use semantics.RewriteDerivedTableExpression instead of manual rewriting of ColNames Signed-off-by: Andres Taylor <[email protected]> * work on making derived tables with aggregation work Signed-off-by: Andres Taylor <[email protected]> * refactor code Signed-off-by: Andres Taylor <[email protected]> * enable horizon planning in more situations Signed-off-by: Andres Taylor <[email protected]> * update test expectations Signed-off-by: Andres Taylor <[email protected]> * make sure to always use a method to create aggregate params Signed-off-by: Andres Taylor <[email protected]> * cleanup and refactoring Signed-off-by: Andres Taylor <[email protected]> * use weight strings for min/max Signed-off-by: Andres Taylor <[email protected]> * update list of error code Signed-off-by: Florent Poinsard <[email protected]> * disallow aggregation on top of aggregation with a clearer error message Signed-off-by: Andres Taylor <[email protected]> * fail min/max queries on types we cant compare Signed-off-by: Andres Taylor <[email protected]> * test: remove pattern not used Signed-off-by: Andres Taylor <[email protected]> * spread table id through derived tables Signed-off-by: Andres Taylor <[email protected]> * add ordering bottom up so the order can be re-used Signed-off-by: Andres Taylor <[email protected]> * unify Derived and Horizon into a single struct Signed-off-by: Andres Taylor <[email protected]> * refactor: aggregation-pushing Change the aggregation type when pushed down and not after the fact. Signed-off-by: Andres Taylor <[email protected]> * add support handling sum(distinct x) and count(distinct x) on top of joins Signed-off-by: Andres Taylor <[email protected]> --------- Signed-off-by: Florent Poinsard <[email protected]> Signed-off-by: Andres Taylor <[email protected]> Co-authored-by: Andres Taylor <[email protected]>
- Loading branch information