Commit Graph

112 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
7feb0e667b planner: fix create binding panic when status.record-db-qp enable (#29519) 2021-11-08 21:11:04 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
193b74ecbb executor: rename txnScope as readReplicaScope instead (#27987) 2021-09-14 12:54:40 +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
072cf2791e *: fix some audit log error (#26767) 2021-08-05 19:39:12 +08:00
59d835eac5 executor: support forbid tiflash for stale read (#25828) 2021-07-06 13:33:28 +08:00
ec7240edba planner: Rename ExplicitStaleness to IsStaleness (#25791) 2021-06-28 16:15:25 +08:00
799591a06f session: read local dc replicas automatically for stale read (#25525)
* fix select

Signed-off-by: yisaer <disxiaofei@163.com>
2021-06-18 17:13:38 +08:00
xhe
9189ec66ac *: stale reads compatible with prepare (#25156) 2021-06-11 19:32:35 +08:00
811253785c planner, executor: add stale read compatibility for temporary table (#25206) 2021-06-07 21:06:28 +08:00
0f151af7c5 *: add telemetry support for CTE (#25022) 2021-06-03 14:46:27 +08:00
f3557bb591 planner, executor: supports select statement with AS OF (#24613) 2021-05-27 21:11:35 +08:00
xhe
bfdad7c752 *: milisecond test and infoschema fix (#24820) 2021-05-24 18:27:34 +08:00
xhe
5e9e0e6e37 *: consitent get infoschema (#24230) 2021-05-10 21:00:36 +08:00
28c9e9290b *: gocritic fixes for commentFormatting (#21578) 2020-12-09 12:03:17 +08:00
f72cec77b6 *: support SQL bind for Update / Delete / Insert / Replace (#20686) 2020-11-17 15:19:04 +08:00
713c2378f6 planner: let SQL BINDING support UNION ALL/INTERSECT/EXCEPT (#20010) 2020-09-27 13:58:37 +08:00
c2c02cde4b *: support record kv/pd time for a SQL statement (#17591) 2020-06-18 21:17:48 +08:00
d53336bd4a planner: support sql_select_limit session / global variable (#17444) 2020-06-02 18:02:29 +08:00
5c4f457580 executor: remove dead code about Cacheable function call (#14740) 2020-02-12 22:05:11 +08:00
174ff27943 *: fix static check issues (#14286) 2020-01-06 16:07:15 +08:00
f35be4a989 executor: support index advisor, complete input preparation part (#13968) 2019-12-13 15:46:44 +08:00
0730eeca03 *: fix snapshot problem in show table status (#13797) 2019-12-05 13:26:26 +08:00
17ffc8031b executor: do not set priority when tidb_force_priority is set (#13633) 2019-11-22 10:51:38 +08:00
36f0f37b40 expression, planner: remove some fields from `expression.Colum… (#12573) 2019-10-29 15:48:26 +08:00
15011b6c49 executor: new execution path for point execution within prepared plan cache (#11970) 2019-09-17 14:14:45 +08:00
59ea7460a8 planner: PointGet don't rely on names in expression.Column (#11779) 2019-08-26 15:40:39 +08:00
f24866a40c *: support bindings for prepare statement (#11642) 2019-08-26 10:30:40 +08:00
02ab1ed7ee executor,session: display the tree-like format of the trace statement (#11633) 2019-08-06 14:18:31 +08:00
e09745bd02 metrics: add metrics for bind info (#10921)
All tests passed, auto merged by Bot
2019-07-26 20:19:03 +08:00
abbca5375e *: add trace support for subquery (#11182)
Test pass, auto merge by Bot
2019-07-24 19:03:47 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
f67352d238 *: print an expensive log when a query exceeds time threshold (#10350) 2019-06-05 20:38:11 +08:00
190990b352 bindinfo: reduce duplicate DigestHash call (#10352) 2019-05-06 13:19:37 +08:00
cd10bca666 *: support select/ explain select using bind info (#10284) 2019-04-29 16:47:11 +08:00
e59539505a plan, executor: pre with labels for metrics in plan/executor package (#10231) 2019-04-22 21:50:59 +08:00
63d720cbfd *: support create global binding (#9846) 2019-04-17 22:12:50 +08:00
e9653675dd *: remove errors.Trace in main handle path (#10033) 2019-04-04 14:27:15 +08:00
dd3ca22854 planner, executor: support Change and ChangeExec (#9789)
* support update pump or drainer status
2019-03-21 19:04:08 +08:00
f738ba24ad executor: replace logger with zap logger (#9521) 2019-03-14 15:14:38 +08:00
560e8cfe57 *: sleep 0 when retry whole transaction (#9454) 2019-03-02 13:16:28 +08:00
357f9d7363 metrics: add db QPS metric (#9151) 2019-02-13 19:17:44 +08:00
f522de2e8f ddl: support "or replace" option when create view (#8856) 2019-01-16 19:54:22 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
6fb260f8a6 *: redesign trace statement with json output (#8357) 2018-11-21 13:50:18 +08:00
32b1dbd8d5 *: rename "github.com/pkg/errors" to "github.com/pingcap/errors" (#8136)
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
dbdd806c0e *: add session variable "tidb_enable_cascades_planner" (#7879) 2018-10-12 13:21:51 +08:00