planner: completely reject 'ORDER BY contains aggregate function and applies to the result of a non-aggregated query' #21848
Labels
feature/developing
the related feature is in development
sig/planner
SIG: Planner
type/enhancement
The issue or PR belongs to an enhancement.
Development Task
In TiDB,
Such queries should be rejected regardless
only_full_group_by
is enabled or not, as handled in https://bugs.mysql.com/bug.php?id=72512.Currently, TiDB can only reject such cases when
only_full_group_by
is enabled throughPlanBuilder.checkOnlyFullGroupByWithOutGroupClause
.We may move the checking logic of ORDER BY out of this method.
The text was updated successfully, but these errors were encountered: