Commit Graph

1159 Commits

Author SHA1 Message Date
b9c5aaf552 planner: error by default for GROUP BY expr ASC|DESC (#21120) 2020-12-10 16:01:51 +08:00
39d8fcc71b executor: fix value swapping and multi-updates in UPDATE statement (#20493) 2020-12-10 15:48:02 +08:00
f44c77371e test: convert test to benchmard test to make ci stable (#21616)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-12-10 11:16:52 +08:00
7007bb543b planner: move partition prune test from expression pkg to planner/core pkg (#21587) 2020-12-10 10:01:28 +08:00
7ea8102185 planner: Add table engine name check (#21110) 2020-12-09 15:56:06 +08:00
d1d891bc6c planner: refine the error message when split region by decimal column (#20543) 2020-12-09 12:21:48 +08:00
28c9e9290b *: gocritic fixes for commentFormatting (#21578) 2020-12-09 12:03:17 +08:00
03f385de5f planner/core: use constant propagate before predicates push down (#21061) 2020-12-08 16:32:32 +08:00
77572f873d planner: do not push down the aggregation function with correlated column (#21453) 2020-12-08 10:54:24 +08:00
1df8107448 planner: fix invalid convert type in between...and... (#19820) 2020-12-04 18:59:48 +08:00
ed124b78a7 planner: fix ambiguous field when resolve having expr (#21165) 2020-12-04 11:31:18 +08:00
e33b37789c planner: add projection if expand virtual generated column (#20478)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-12-03 21:42:49 +08:00
7a88ad852d planner: check for decimal format in cast expr (#20836) 2020-12-03 18:39:48 +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
72d4504f45 planner: fix explain-hint panic for joins generated by subquery (#20675) 2020-12-03 15:18:37 +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
90c7987763 executor: add SHOW STATS_TOPN (#21403) 2020-12-01 17:02:51 +08:00
c4e5096aab planner: fix unexpected bad plan when IndexJoin inner side estRow is 0. (#21084) 2020-12-01 11:41:59 +08:00
3e073c8a08 planner: set dbName for hinted query block table alias (#21213) 2020-11-30 16:35:43 +08:00
99044e6584 planner: stablize unit test for tidb_opt_prefer_range_scan variable (#21346) 2020-11-30 13:38:29 +08:00
b87849868c executor: add benchmark for partitionRangeSplitter (#21363) 2020-11-29 22:54:04 +08:00
0c0e29d363 executor, planner: add partitionRangeSplitter for shuffle (#21306) 2020-11-29 16:39:16 +08:00
cc0e1d46e6 planner/core, session, sessionctx/variable: add session variable to control the concurrency of shuffle merge join (#21332) 2020-11-27 14:09:04 +08:00
32d19b78e1 *: refine runtime stats display and tiny bug fix for metrics (#21022)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-11-26 16:35:25 +08:00
4754cda0b3 executor,planner: fix resource leak of shuffle and optimize merge join by shuffle (#21255) 2020-11-26 10:46:19 +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
f9cd7ed69d planner, executor: parallelize stream aggregation with shuffle. (#21095) 2020-11-25 15:37:51 +08:00
f4e58eecab ddl: compare expression in check partition definition according to column type (#21226) 2020-11-25 11:46:36 +08:00
72794461eb *: support read only lock (#21100)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2020-11-25 10:06:54 +08:00
8808a65d49 planner: fix should not use point get plan (#21124) 2020-11-24 11:54:54 +08:00
4897ecdba2 planner, type: fix AggFieldType error when encouter unsigned and sign type (#21062) 2020-11-24 11:33:24 +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
2effb7dd19 planner: make index-hash-join and index-merge-join consider the collation in the right way (#21221)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-11-23 20:37:43 +08:00
e6d7e7b89e planner: make index-hash-join and index-merge-join consider collation (#21201)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-11-23 17:34:53 +08:00
1cdc15baaa planner: DELETE cannot delete data in some cases when the database name is capitalized (#21202)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-11-23 14:59:39 +08:00
fbaab3ecb6 ddl, planner: make partition table consider collation in create table and select sentence (#20937) 2020-11-21 09:53:53 +08:00
2c66371d8b planner, sessionctx : Add 'last_plan_from_binding' to help know whether sql's plan is matched with the hints in the binding (#18017) 2020-11-20 20:43:23 +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
629ef07597 plan: fix the IsSelectForUpdateLockType check (#21125) 2020-11-19 12:24:23 +08:00
7475d92393 *: inject projection for the plan pushed to TiDB (#21090) 2020-11-19 11:27:53 +08:00
dy
a426a0e5ff planner: disallow multi-updates on primary key (#20603) 2020-11-17 18:33:53 +08:00
de75e604ff *: differentiate types for user variables (#18973)
Co-authored-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-11-17 17:03:41 +08:00
f1a0a28af4 executor, planner: do not coalesce column for update/delete natural_using_join (#21085) 2020-11-17 15:36:57 +08:00
f72cec77b6 *: support SQL bind for Update / Delete / Insert / Replace (#20686) 2020-11-17 15:19:04 +08:00
7e0821f12b planner: fix point get and batch point get should not use invisible index (#21088) 2020-11-17 14:09:27 +08:00
e136429d8d *: refactor parser initialize method and add tidb_enable_strict_double_type_check variable (#20967) 2020-11-16 19:58:27 +08:00
41786cb976 *: seperate hash keys from join keys in IndexJoin (#20761) 2020-11-16 16:24:51 +08:00