infer functional dependencies from filters / join conditions and use them for only_full_group_by check #25089
Labels
feature/developing
the related feature is in development
sig/planner
SIG: Planner
type/compatibility
type/enhancement
The issue or PR belongs to an enhancement.
Development Task
Below is the output from mysql 5.7:
We can see that, MySQL infers functional dependencies from filters and join conditions, and uses them for only_full_group_by check. Compared with MySQL, TiDB uses a pretty naive approach for only_full_group_by check, and TiDB would report error for all the above SELECT statements.
PostgreSQL(12 devel) has same loose check as TiDB.
The text was updated successfully, but these errors were encountered: