Commit Graph

378 Commits

Author SHA1 Message Date
cfef1bc52f planner/core: add a range check against display width of BIT column type (#11942) 2019-09-02 17:19:31 +08:00
2a155f4eaf planner: use ExtraHandleColumn as PK when generating TablePath (#11959)
* use ExtraHandleColumn as PK

* fix fmt

* move unittest to explaintest
2019-09-02 17:03:06 +08:00
b239f2f04d planner: split avg to count and sum for TableReader cop task (#11926) 2019-09-02 16:16:05 +08:00
bb84d1bdba planner: allow insert default into generated columns (#11901) 2019-08-30 17:45:40 +08:00
dc1f8ff031 planner: don't prune sleep function in LogicalProjection (#11927) 2019-08-30 16:35:06 +08:00
90f3148ba5 planner: eliminate top level Sort in subquery (#11935) 2019-08-30 11:01:48 +09:00
3de23f0f7c planner/core: support query block hint (#11861) 2019-08-29 19:14:38 +09:00
39f83c1220 planner: support predicate pushdown for Window (#11915) 2019-08-29 14:23:36 +08:00
ba4eb8fba5 *: add region read/write bytes info and approximate size/keys in show table regions result. (#11847) 2019-08-29 11:33:44 +08:00
39aed0d29d planner: remove unnessary conversion and parenthesis (#11913)
Signed-off-by: Lonng <heng@lonng.org>
2019-08-28 22:18:45 +08:00
c59933323a expression: fix constItem() and column-pruning in order by clause (#11839) 2019-08-28 16:59:35 +08:00
4cd5d15d97 *: improve plan cache param eval and insert const (#10746) 2019-08-27 11:11:01 +08:00
59ea7460a8 planner: PointGet don't rely on names in expression.Column (#11779) 2019-08-26 15:40:39 +08:00
cc04cd9e3c planner: add index optimizer hint (#11746) 2019-08-23 18:27:46 +08:00
0ff5b50c15 planner: remove unnecessary first_row() functions (#11723) 2019-08-23 14:02:40 +08:00
73b8e6da3f *: support query block syntax (#11761) 2019-08-22 12:38:36 +08:00
ddace4f3fc executor: split a separate region for index when split table region (#11721) 2019-08-22 10:35:46 +08:00
2addc25984 planner: use BatchPointGet to improve SELECT ...WHERE IN performance (#11750) 2019-08-20 19:10:35 +08:00
bd33771efa planner: fix incorrect table name in explain information (#11780) 2019-08-20 10:32:18 +08:00
2f95faeaa7 planner: tiny optimization for tableNames2HintTableInfo (#11785) 2019-08-20 10:07:17 +08:00
8a4b60c682 executor, privileges: fix privilege check fail for CREATE USER and DROP USER (#11589) 2019-08-19 19:08:17 +08:00
bc2036987a executor: record prepared stmt in handle_query_duration (#11753) 2019-08-19 15:43:18 +08:00
1118b7bfa6 planner/core: fix the 'for update' condition for the point get query (#11771) 2019-08-19 15:34:18 +08:00
b393b76826 executor, privileges: fix privileges check fail for SET DEFAULT ROLE (#11201) 2019-08-19 13:48:16 +08:00
69c0c3b1e8 Planner: Avoid injecting redundant projection below LogicalJoin (#11662) 2019-08-19 10:55:46 +08:00
fb166e82b6 planner: early break loop if the condition is satisfied (#11766) 2019-08-19 10:31:17 +08:00
2009741d57 planner: increase default concurrency factor of cost computing (#11752) 2019-08-16 17:37:16 +08:00
79d43a56ed planner: fix uncorrect behavior of index join (#11724) 2019-08-16 15:04:46 +08:00
8a161721f1 planner, expression: remove TblID2Handle from Schema (#11152) 2019-08-16 13:02:16 +08:00
103cbcd5c5 planner: rewrite in as eq when the rhs list has only one item 2019-08-16 11:07:59 +08:00
f866bb42ab revert hint scope & remove test (#11740) 2019-08-15 13:49:19 +08:00
4491bf854e planner: rename optimizer hints (#11673) 2019-08-14 19:31:01 +08:00
adb3071c90 *: refine the attribute definition of types.Time and types.Dur… (#11672) 2019-08-14 11:30:40 +08:00
e08e9391dd planner: "for update" should not work in a single autocommit statement (#11715) 2019-08-13 19:30:27 +08:00
6d51ad33fd *: Optimize struct memory usage by adjust field order (#11629) 2019-08-13 17:20:53 +08:00
4995fe741e planner/core: check the window func arg first before checking window specs (#11613) 2019-08-10 16:22:45 +08:00
d51a3e067e planner: use HistColl containing all columns for row width estimation (#11689) 2019-08-09 17:00:33 +08:00
036e7e207d *: support new 'log' format for trace (#11681) 2019-08-09 12:43:33 +08:00
f74b9e9f6c planner: implement projection and table dual in cascades (#11664) 2019-08-08 14:21:28 +08:00
700bf2f3d8 planner: support PointGet plan when table has alias name (#11149) (#11270) 2019-08-07 18:08:37 +08:00
fe038642e5 *: refactor cost model formulas and constants (#10581) 2019-08-07 17:44:09 +08:00
a530f87db7 planner: add aggregation hints TIDB_HASHAGG and TIDB_STREAMAGG (#11364) 2019-08-07 10:51:34 +08:00
c9502f0667 executor: support analyze option for samples (#11609) 2019-08-06 11:38:33 +08:00
265b654809 model: add schema name, table name to ddl job. (#11561) 2019-08-05 17:30:23 +08:00
3bd64ba92f planner,expression: recognize the three new expressions from pi… (#8891) 2019-08-04 14:14:01 +08:00
cfee8c0984 planner: fix bug that window function do not check ignore nulls. (#11554) 2019-08-02 17:14:42 +08:00
59e3eb75cd *: speed up the operation of "admin check table" (#8572) 2019-07-31 17:11:30 +08:00
13778fe51b planner: fix compatibility bug for window function (#11488)
All tests passed, auto merged by Bot
2019-07-31 11:50:10 +08:00
1913237f26 planner: function name in ErrWindowInvalidWindowFuncUse should be lowercase 2019-07-31 11:29:08 +08:00
d91ed2b7a7 config: add split-region-max-num in config to control the maximum split region number (#11427)
All tests passed, auto merged by Bot
2019-07-31 10:47:40 +08:00