Commit Graph

84 Commits

Author SHA1 Message Date
18381f9319 planner: fix the issue that binding cannot work when sql_select_limit is enabled (#29789) 2021-11-23 17:59:52 +08:00
9c683d3f67 dml : Support point get / batch point get for cache table (#29703) 2021-11-15 15:49:07 +08:00
8d9647dee5 privileges: fix create temporary tables privilege (#29279) 2021-11-01 16:46:51 +08:00
db9592d504 infoschema : solve prepared statements can't see temporary tables when the SQL involves multiple tables (#29289) 2021-11-01 16:02:52 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
cc1f990bac planner: fix update panic when update in prepare and execute (#26759) 2021-08-05 23:41:13 +08:00
c08de09173 planner: show binding information in explain format = 'verbose' (#26930) 2021-08-05 19:31:13 +08:00
8ebf6c316b planner: avoid unnecessary optimizer warning when sql_select_limit is set (#26928) 2021-08-05 17:21:13 +08:00
cb7cd9c4c0 planner: directly use sql bind to generate query plan (#26141) 2021-08-04 20:43:07 +08:00
df908bf31f planner: add binding info for explain stmt (#26403) 2021-08-02 16:57:06 +08:00
4f26765194 privilege: add restricted read only (#25340) 2021-07-16 12:09:33 +08:00
d56be06f4d executor,planner: use an object pool to reuse PlanBuilder (#26216) 2021-07-15 21:17:33 +08:00
7811bf9a37 *: use pprof profile to collect CPU time group by SQL and plan digest (#24892) 2021-06-02 12:51:39 +08:00
2580240dde *: pass sql, plan digest down to KV request (#24854) 2021-05-25 15:47:33 +08:00
2df8c3bfd1 store/tikv: resolve ReplicaReadType dependencies (#24653) 2021-05-17 14:09:39 +08:00
b983856ddf store/tikv:mv kv.ReplicaReadType to tikv (#23376) 2021-03-19 21:19:36 +08:00
92b1b8e0e9 planner: check schema stale for plan cache when forUpdateRead (#22381) 2021-03-19 17:25:36 +08:00
4baa3d34fb planner: fix statement-optimize not work in TryFastPlan (#20905) 2021-03-18 16:00:57 +08:00
276dd0e69e util: optimize the performance of restore with db (#22910) 2021-03-12 16:46:56 +08:00
1ca62a09ff planner: fixed a bug that prevented SPM from taking effect (#23197) 2021-03-09 17:56:55 +08:00
e234403616 planner: fix panic in extractSelectAndNormalizeDigest (#22333) 2021-01-11 15:43:10 +08:00
51794e9d30 *: rewrite origin SQL with default DB for SQL bindings (#21275) 2021-01-06 16:28:29 +08:00
7b76edcfe1 *: support baseline capture for prepared statements (#21271) 2020-12-22 16:21:59 +08:00
72d4504f45 planner: fix explain-hint panic for joins generated by subquery (#20675) 2020-12-03 15:18:37 +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
f72cec77b6 *: support SQL bind for Update / Delete / Insert / Replace (#20686) 2020-11-17 15:19:04 +08:00
b2e6df07c8 session: Support Variable-Setting Hint SET_VAR (#20232) 2020-10-28 14:27:13 +08:00
713c2378f6 planner: let SQL BINDING support UNION ALL/INTERSECT/EXCEPT (#20010) 2020-09-27 13:58:37 +08:00
1c842919eb executor: fix hint not working in prepared statement (#19935) 2020-09-17 13:40:48 +08:00
e356136b72 *: annotate execution info in runtime/trace (#19407)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-27 11:23:36 +08:00
75ebe66a0b planner: fix IsPointGetWithPKOrUniqueKeyByAutoCommit for clustered index (#19255) 2020-08-20 13:30:04 +08:00
8978773f5e planner: remove the limit that nth_plan hint value can't exceed 100 (#19037) 2020-08-10 20:31:51 +08:00
b193db8b49 planner: ban tiflash engine when the statement is not read only (#18458)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-07-14 11:43:48 +08:00
dce0e45bdf planner, add hint nth_plan(x) to help user force a plan (#17850) 2020-07-01 15:34:22 +08:00
9b16427628 server: prefetch point-get keys for multi-statement queries. (#18155) 2020-06-23 13:13:18 +08:00
b59cb1a94d planner, session, util: support Insert hint (#16966) 2020-06-17 15:56:01 +08:00
405a5d009d sessionctx: add optimization-time and wait-TS-time into the slow log (#17869) 2020-06-10 10:41:50 +08:00
0ec197fae0 sessionctx: add some information about the rewriting phase into the slow log (#17569) 2020-06-09 13:49:42 +08:00
d53336bd4a planner: support sql_select_limit session / global variable (#17444) 2020-06-02 18:02:29 +08:00
8a164d2cce planner: improve the error message for hints defined more than once (#16301) 2020-06-01 23:21:18 +08:00
7ca3d9cadc bindinfo, record how bindings are created in SQL bindings. (#17254) 2020-05-27 09:56:40 +08:00
746c88a461 bindinfo, planner: make evolve tasks consider runtime hints instead of ignoring them (#15668) 2020-03-31 20:30:23 +08:00
2619f02ddd *: move hint and block hint processor to util directory (#15897) 2020-03-31 16:37:45 +08:00
08c4c665fd session: initialize session bind handler when creating session according to createSessionWithOpt (#15724) 2020-03-30 14:48:10 +08:00
71cf7e92f1 bindinfo: build ID of BindRecord from Hint instead of explain query (#15781) 2020-03-30 14:40:43 +08:00
7223e7f8c9 bindinfo, planner: fix TiFlash compatibility with binding and SQL plan management (#15719) 2020-03-27 15:44:15 +08:00
c1e44a7818 planner: don't choose point get when none tikv in isolation read (#15147) 2020-03-27 10:27:27 +08:00
4112f1c25b planner/bindinfo: fix occasional panic of baseline evolution (#15233) 2020-03-19 21:10:53 +08:00
af861eeba2 planner: support hint USE_CASCADES(true|false) to use/disuse cascades planner in a single query (#15352) 2020-03-16 19:35:24 +08:00