Commit Graph

302 Commits

Author SHA1 Message Date
0490590b01 planner,executor: fix 'select ...(join on partition table) for update' panic (#21148) 2021-06-16 23:00:37 +08:00
1f0245a821 planner: Revert tidb_allow_mpp modification for downgrade compatibility and add warnings for enforce mpp. (#25302) 2021-06-11 10:28:35 +08:00
50b6da0f89 executor: add limit implementation for CTEExec (#24870) 2021-06-03 16:26:27 +08:00
30fcecad7f planner: add dml support in CTE (#25024) 2021-06-03 15:50:27 +08:00
dbb753fd02 executor: create PipelinedWindowExec (#23022) 2021-06-03 15:38:27 +08:00
52e89cb8bf planner/core: support union all for mpp. (#24287) 2021-06-02 14:15:38 +08:00
a80047c604 CTE: support explain CTE plan (#24986) 2021-05-31 19:03:36 +08:00
963288a68c planner: build plan for CTE (#24792) 2021-05-28 16:47:35 +08:00
95e9ea82ac table: remove reading from non-specificed partitions in IODKU (#24872) 2021-05-26 10:59:34 +08:00
9865d51f79 planner: fix the ORDER BY column not match the GROUP BY clause (#24708) 2021-05-24 20:29:34 +08:00
ac7e6a42c5 expression, planner: push cast down to control function with enum type. (#24542) 2021-05-19 07:51:40 +08:00
e92df204b5 planner: fix wrongly check for update statement (#24614) 2021-05-14 19:09:38 +08:00
1cd3788334 planner: convert Sequence as DataSource to TableDual (#24405) 2021-05-06 13:35:52 +08:00
257ce7d93d planner: filter conflict read_from_storage hints (#24313) 2021-04-29 14:51:57 +08:00
4d92261772 planner: fix subquery update with generated column (#23955) 2021-04-15 18:35:54 +08:00
cc0eb408f8 ddl: fix update can see columns not public (#22307) 2021-04-07 13:00:32 +08:00
bc06b96f21 planner: fix index-out-of-range error when checking only_full_group_by (#23844) 2021-04-06 15:50:31 +08:00
8911a4a24f planner: skip storage engine check for CRAETE VIEW statement (#23728) 2021-04-06 14:51:25 +08:00
eeca799883 planner: fix LogicalPlans that contain Window Function are ambiguous (#22853) 2021-04-02 23:35:24 +08:00
503841f5cd planner, privileges: do not require SELECT for unqualified DELETE (#23647) 2021-04-02 07:35:24 +08:00
90d02b2eed *: add support for dynamic privileges (#22778) 2021-04-01 00:17:24 +08:00
961cd66393 executor,planner: fix update join update unmatched outer row (#23491) 2021-03-26 19:43:23 +08:00
d7883fe146 planner: fix only_full_group_by check not enough (#23404) 2021-03-23 13:17:36 +08:00
6ba51c8eac plan: setting not null flag for extrak pk (#23237) 2021-03-18 17:27:36 +08:00
28c3748496 planner: remove some risky cache operations in the plan builder (#23354) 2021-03-18 15:35:11 +08:00
2a909bf2f1 Privileges: fix delete privilege check wrongly (#22971) 2021-03-09 19:26:55 +08:00
2d48f9573c planner: decorrelate LogicalApply with inner join as the inner child (#22649) 2021-02-24 15:42:03 +08:00
78debe76ef planner: fix where condition index out of range (#22833) 2021-02-22 11:06:17 +08:00
dd5bfc3949 planner: reorder inner joins simplified from outer joins (#22392) 2021-01-15 11:57:29 +08:00
4088c2011b planner: check index valid while forUpdateRead (#22152)
Signed-off-by: you06 <you1474600@gmail.com>
2021-01-12 15:09:59 +08:00
809a375f5c planner: fix wrong sql run success if condition alwasy false (#22300) 2021-01-11 14:07:28 +08:00
e393b1b97c planner: check error when correlatedAggregateResolver leaves ast.Node (#22222) 2021-01-11 11:11:27 +08:00
c2ee8d37c2 *: bump tidb's parser to the latest version (#22218)
Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
2021-01-08 17:58:58 +08:00
b45fa8b891 metrics,planner: add 'pseudo estimation' reason in the metrics (#21911) 2021-01-04 13:50:15 +08:00
f2a88ffa4b planner: report error for invalid window specs which are not used (#21083) 2020-12-23 18:14:30 +08:00
4135fa313f planner: generate correct query block name and offset for update / delete (#21823) 2020-12-23 17:03:59 +08:00
c3576fa0f0 planner: fix unknown columns in join using below agg (#21922)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-12-23 11:26:06 +08:00
5cb50070bd planner: fix union doesn't handle collate correctly (#21854)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-12-21 15:06:33 +08:00
f687ebd91c planner: fix correlated aggregates which should be evaluated in outer query (#21431) 2020-12-18 14:51:35 +08:00
3c74651eda planner: allow a nonaggregate column not named in GROUP BY clause when this column is limited to single value (#21838) 2020-12-18 13:07:04 +08:00
49b926ede7 planner: check for only_full_group_by in ORDER BY and HAVING (#21216) 2020-12-14 14:33:17 +08:00
986b149917 planner: report error when ORDER BY conflicts with DISTINCT (#21286) 2020-12-11 18:07:53 +08:00
39d8fcc71b executor: fix value swapping and multi-updates in UPDATE statement (#20493) 2020-12-10 15:48:02 +08:00
28c9e9290b *: gocritic fixes for commentFormatting (#21578) 2020-12-09 12:03:17 +08:00
ed124b78a7 planner: fix ambiguous field when resolve having expr (#21165) 2020-12-04 11:31:18 +08:00
65a3a7d9a4 planner: fix join with using clause didn't check ambiguous columns (#21411) 2020-12-03 18:05:48 +08:00
c218c58218 *: support select from tablesample (#20883) 2020-12-03 16:46:18 +08:00
8071a90d36 planner: report error when UPDATE set generated column with non-default value (#21460) 2020-12-03 14:43:18 +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
2f33d57db1 planner: detect unknown column in window clause (#21080) 2020-12-01 21:08:04 +08:00