This pr introduces the dp by subset algorithm to TiDB, though not involved in TiDB's plan optimization currently.
plan
planner