Commit Graph

51 Commits

Author SHA1 Message Date
07508df51f ddl: introduce newReorgExprCtx to replace mock.Context usage (#53389)
ref pingcap/tidb#53388
2024-05-21 06:23:46 +00:00
f0af7766a2 stmtctx, context: remove the redundant implementation of warnings/extraWarnings in statement context (#52862)
close pingcap/tidb#52848
2024-05-15 07:13:12 +00:00
acdb6f58e3 planner: UPDATE's select plan's output col IDs should be stable (#53268)
close pingcap/tidb#53236
2024-05-14 14:17:42 +00:00
17d3f7fd45 planner: small refactor for plan cache (#53028)
ref pingcap/tidb#50618
2024-05-06 09:04:07 +00:00
70a825397f *: add metadata lock when using the plan cache (#51897)
close pingcap/tidb#51407
2024-04-28 09:16:27 +00:00
cd90f81880 statistics: support global singleflight for sync load (#52796)
close pingcap/tidb#52797
2024-04-24 09:51:11 +00:00
3368ccdef1 expression: introduce StaticEvalContext to provide context when evaluating expressions (#52631)
close pingcap/tidb#52630
2024-04-23 06:52:40 +00:00
cfbabfa705 stmtctx: use a standalone RangeFallbackHandler (#52738)
close pingcap/tidb#52737
2024-04-22 13:04:39 +00:00
f1ddb5a968 stmtsummary: add new columns plan_cache_unqualifed into statement_summary (#52725)
close pingcap/tidb#50618
2024-04-22 04:42:09 +00:00
6cca89c794 executor, planner: add a smaller context for ToPB method (#52369)
close pingcap/tidb#52368
2024-04-10 05:31:51 +00:00
12833e8278 executor, planner: minimize the context used by the ranger package (#52363)
close pingcap/tidb#52362
2024-04-09 10:57:21 +00:00
fab13afa2b expression: Move more methods from SessionVars to BuildContext (#52440)
ref pingcap/tidb#52366
2024-04-09 09:00:34 +00:00
f7d66f4913 distsql: use a more accurate type of the context of distsql (#51618)
close pingcap/tidb#51617
2024-04-01 08:27:16 +00:00
0ed511a84b planner, stats: reduce the persist memory usage of stats after startup (#47496)
close pingcap/tidb#46867
2024-03-14 14:09:41 +00:00
72182b2d36 stmtctx, execdetails: migrate execdetails inside the stmtctx and related methods to execdetails (#51517)
close pingcap/tidb#51516
2024-03-08 05:38:06 +00:00
4c749f052b executor,planner: make used stats info thread safe (#51029)
close pingcap/tidb#50835
2024-02-07 09:40:22 +00:00
7087f702e1 executors: record the index usage in each executors (#50643)
close pingcap/tidb#50261
2024-01-30 03:51:22 +00:00
51e1e13494 *: update interface{} to any (#50770)
ref pingcap/tidb#50765
2024-01-29 07:21:29 +00:00
9416934ea3 *: split planner errors and remove duplicate definitions (#50695)
ref pingcap/tidb#48875
2024-01-26 09:42:21 +00:00
799a46107e planner: move more hint code to the hint package (#50728)
ref pingcap/tidb#48875
2024-01-25 15:09:21 +00:00
230e1d07b6 bindinfo: add SetHintWarning to trace the hint warning (#50666)
close pingcap/tidb#48875
2024-01-24 11:27:21 +00:00
9b4cf39b7a planner: show the reason why cannot hit plan cache for EXECUTE statements (#50505)
close pingcap/tidb#50407
2024-01-17 17:27:16 +00:00
6e10826f16 *: move dup key error handling to errctx (#50239)
close pingcap/tidb#50238
2024-01-10 11:51:23 +00:00
d5a21e2829 *: remove stmtctx.IgnoreNoPartition and use errctx to handle partition mismatch error (#50173)
close pingcap/tidb#50172
2024-01-09 07:24:31 +00:00
64741e9710 *: remove stmtctx.BadNullAsWarning and use errctx to handle bad null error (#50120)
close pingcap/tidb#50119
2024-01-05 11:28:51 +00:00
98f4e879e5 *: use errctx to handle divide zero error (#50042)
close pingcap/tidb#50041
2024-01-05 05:47:10 +00:00
6f3266498d ddl: fix reorg cannot handle divide 0 error (#50057)
close pingcap/tidb#50053
2024-01-04 06:21:32 +00:00
383105433b *: move StmtCtx.ErrAutoincReadFailedAsWarning to errctx (#49992)
close pingcap/tidb#49991
2024-01-03 09:56:02 +00:00
a7ef915052 *: upgrade rules_go (#49693) 2023-12-27 02:15:28 +00:00
a8a7525456 planner: introduce a new fix-control variable to lift all plan cache restrictions for testing (#49754)
close pingcap/tidb#49736
2023-12-25 11:42:26 +00:00
116456ddfb sessionctx: refactor sessionctx pkg's warning and note generation (#49760)
close pingcap/tidb#49291
2023-12-25 10:31:57 +00:00
e61ee664f5 errctx, stmtctx: add cache to the errctx (#49689)
close pingcap/tidb#49688
2023-12-22 07:05:16 +00:00
b27587e9b6 session: add resource group name in stmt context (#49422)
close pingcap/tidb#49318
2023-12-21 02:58:54 +00:00
97acf71044 expression: refactor cache logic for builtinRegexpSubstrFuncSig (#49584)
close pingcap/tidb#49583
2023-12-20 10:52:53 +00:00
531a1ce920 stmtctx: remove OverflowAsWarning flag (#49122)
close pingcap/tidb#49137, close pingcap/tidb#49143
2023-12-14 16:51:19 +00:00
6aea95e223 planner: refactor planner module's warning and note generation logic (get rid of unnecessary stack info) (#49390)
close pingcap/tidb#49291
2023-12-14 08:13:50 +00:00
e8d7b395a6 errctx, types, sessionctx: avoid memory allocation in HandleError and reduce allocation in creation of statement context (#49280)
close pingcap/tidb#49277
2023-12-11 04:01:48 +00:00
7985dc4b46 expression: add method CanonicalHashCode to Expression to decouple it with stmtctx (#48666)
close pingcap/tidb#48665
2023-11-23 11:02:43 +00:00
707f860527 util/rowcodec,tablecodec: remove stmtctx dependency from rowcodec and tablecodec (#48816)
close pingcap/tidb#48751
2023-11-23 10:19:13 +00:00
3d176fcc2c util/codec,util/errctx,*: add error context, and use it to refactor util/codec (#48613)
close pingcap/tidb#48611
2023-11-20 13:53:40 +00:00
69028f1689 util/intest: provide intest.AssertNotNil and intest.AssertNoError (#48579)
close pingcap/tidb#48578
2023-11-14 05:57:44 +00:00
8301e4e991 types,*: remove the dependency stmtctx from types package. (#48108)
close pingcap/tidb#48080
2023-11-01 11:45:44 +00:00
5503eb517f types: always handle overflow error outside the types package (#47997)
close pingcap/tidb#47517
2023-10-30 07:05:06 +00:00
6d64b7e89a types, stmtctx, *: use ZeroDate, ZeroInDate and InvalidDate related flags to replace variable in statement context (#47794)
close pingcap/tidb#47507, close pingcap/tidb#47508
2023-10-27 10:44:05 +00:00
92749f73c8 types: more strict for types.StrictFlags (#47842)
close pingcap/tidb#47829
2023-10-20 09:39:40 +00:00
9f97c9ac0c types: fix update unsigned column with overflow string issue (#47817)
close pingcap/tidb#47816
2023-10-20 04:47:06 +00:00
987663fff7 types: use flags in types package to handle clip zero case (#47543)
close pingcap/tidb#47518
2023-10-19 08:15:30 +00:00
90bd2dde4d stmtctx, *: change TypeCtx field to a private field (#47742)
close pingcap/tidb#47698, close pingcap/tidb#47752
2023-10-19 05:22:59 +00:00
3ef01b5882 types, *: move truncate flags to the types context (#47522)
close pingcap/tidb#47511
2023-10-18 05:15:29 +00:00
f2d25f809d linter: setup a linter to validate constructor (#47661)
close pingcap/tidb#47660
2023-10-16 11:33:28 +00:00