Commit Graph

193 Commits

Author SHA1 Message Date
5bafb3203e planner: show cast type in EXPLAIN in coptask (#23123) 2021-03-16 16:16:55 +08:00
cd199b23aa planner: not push down mpp/join to TiFlash in some cases that TiFlash not supported the query (#23259) 2021-03-12 21:34:55 +08:00
362883c245 expression, planner: allow pushdown count distinct when enumerate physical plans (#22867) 2021-03-11 19:22:55 +08:00
f6a61bc915 plan/core: support mpp group by expressions. (#23133)
* planner/core: make mpp support grouping by expressions

* add tests

* fix typo

* fix

* fix test

Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-03-10 17:06:15 +08:00
9ac5b7ae36 planner: fix wrong table filters for index merge plan (#23132) 2021-03-08 15:50:56 +08:00
b3d4458b28 planner: refine explain info for batch cop (#20360) 2021-03-08 15:30:54 +08:00
50aec2b2d2 planner: enable column pruning for common handle (#22940) 2021-03-04 14:42:54 +08:00
806097c2e5 planner: fix wrong index merge selection (#22825) 2021-02-24 20:18:03 +08:00
2d48f9573c planner: decorrelate LogicalApply with inner join as the inner child (#22649) 2021-02-24 15:42:03 +08:00
04e5137f48 *: use explain format = 'brief' for tests (#22677) 2021-02-22 17:50:06 +08:00
3ad7f40140 expression: Add warning info for exprs that can not be pushed to storage layer (#22713) 2021-02-20 10:41:57 +08:00
6d53dda29d plan, mpp: refine the precision of avg(decimal) & avg(null) for mpp (#22668) 2021-02-04 18:58:15 +08:00
44641c3282 planner: change the content of AnalyzeTableID to build global-stats (#22554) 2021-02-02 15:39:44 +08:00
7b79af93d7 planner: fix in-compatibility issues between TiDB agg and TiFlash agg in MPP mode (#22537) 2021-01-27 16:03:32 +08:00
e2540d4ec0 planner: Shuffle hash agg (#21842) 2021-01-22 11:49:30 +08:00
dd5bfc3949 planner: reorder inner joins simplified from outer joins (#22392) 2021-01-15 11:57:29 +08:00
dae6e4935b planner/core: push selection operator to mpp task (#22343) 2021-01-11 17:51:58 +08:00
6e98d18e94 planner: push down projection for tiflash (#21459) 2021-01-07 11:41:44 +08:00
4bfd10cec8 planner: do not use indexMerge when the path only use a single index (#22168) 2021-01-05 20:44:41 +08:00
6742ed201d planner/core: fix a bug of adding enforcer. (#22086) 2021-01-05 17:01:39 +08:00
857e3da6eb planner: join reorder should not change the order of output columns (#16852) 2020-12-31 14:51:14 +08:00
f1805f3dee planner: avoid using index_merge when there are multiple table filters (#22122) 2020-12-31 13:39:49 +08:00
5e67a597cc planner, store/tikv, executor:Support shuffled hash join and refine codes (#20894) 2020-12-28 15:14:15 +08:00
5f3bb760d4 planner: add plancodec id for all type TableScan/IndexScan. (#21935) 2020-12-23 15:49:29 +08:00
1f16f74bd9 planner: add special partition pruner for list columns partition (#21577) 2020-12-23 11:21:53 +08:00
d44e123395 planner: prevent agg push down if it is in the outer child of apply (#21902) 2020-12-22 16:43:26 +08:00
cf806f60e4 util/ranger: convert range condition like x >= 2 and x <= 2 to point condition x = 2 (#21809) 2020-12-22 14:07:54 +08:00
f687ebd91c planner: fix correlated aggregates which should be evaluated in outer query (#21431) 2020-12-18 14:51:35 +08:00
003c42a2c7 planner: bypass the DNF restriction if index merge hint is specified (#20799) 2020-12-18 14:37:06 +08:00
fd587c3552 session: add a switch for index merge join (#21830)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-12-18 11:05:05 +08:00
d33b81b1ee planner: fix distinct push across projection when read partition table (#21060) 2020-12-14 17:41:25 +08:00
07b57065a8 planner: make TestPreferRangeScan stable (#21657) 2020-12-11 14:02:35 +08:00
39d8fcc71b executor: fix value swapping and multi-updates in UPDATE statement (#20493) 2020-12-10 15:48:02 +08:00
7007bb543b planner: move partition prune test from expression pkg to planner/core pkg (#21587) 2020-12-10 10:01:28 +08:00
03f385de5f planner/core: use constant propagate before predicates push down (#21061) 2020-12-08 16:32:32 +08:00
550c2c0c10 planner: natural join not consider rowid and null eq not propagate (#21328)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-12-02 12:18:48 +08:00
084e7190b8 planner: fix unit test for tidb_opt_prefer_range_scan variable (#21294)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
Co-authored-by: Yiding Cui <winoros@gmail.com>
2020-11-25 19:56:16 +08:00
8808a65d49 planner: fix should not use point get plan (#21124) 2020-11-24 11:54:54 +08:00
ceddc106f0 executor,planner/core,util/plancodec: extend executor.ShuffleExec and planner.core.PhysicalShuffle to support multiple data sources (#20942) 2020-11-24 10:59:03 +08:00
38bbb0dd21 planner: ban (index) merge join heuristically when convert eq cond to other cond (#21138) 2020-11-19 17:17:53 +08:00
dy
a426a0e5ff planner: disallow multi-updates on primary key (#20603) 2020-11-17 18:33:53 +08:00
f72cec77b6 *: support SQL bind for Update / Delete / Insert / Replace (#20686) 2020-11-17 15:19:04 +08:00
41786cb976 *: seperate hash keys from join keys in IndexJoin (#20761) 2020-11-16 16:24:51 +08:00
5aada1f4ef planner: add unit test for tidb_opt_prefer_range_scan variable (#20672) 2020-11-13 17:53:34 +08:00
1804f4c53a planner: generate proper hint for IndexHashJoin / IndexMergeJoin (#20992) 2020-11-12 17:28:54 +08:00
5a14eb592c planner: fix index merge doesn't take effect when using prefix key (#20425) 2020-11-12 12:25:53 +08:00
a338e35932 expression: fix wrong inferred type for sum and avg (#20926) 2020-11-11 14:10:34 +08:00
3e306aeae0 planner: don't push down topN above outer join when topN refer scalar subquery expression (#20099) 2020-11-09 11:42:32 +08:00
76c1d28af9 planner: support complex join in broadcast join (#20196) 2020-11-05 16:29:35 +08:00
a53c1d05b1 expression: Support some cast functions push down to TiFlash (#20787) 2020-11-04 15:21:01 +08:00