Commit Graph

213 Commits

Author SHA1 Message Date
49fcf49283 planner: fix flaky test TestPhysicalTableScanExtractCorrelatedCols (#51355)
close pingcap/tidb#51289
2024-02-27 11:21:37 +00:00
f5072b0096 ddl: add privilege check for admin bdr commands (#51185)
close pingcap/tidb#51183
2024-02-27 10:47:01 +00:00
6f02e99396 experssion: table: standalone implement for EvalContext and BuildContext (#51299)
close pingcap/tidb#51298
2024-02-27 07:26:21 +00:00
0df9170791 planner/infoschema: support push down lower to some memtables (#50874)
ref pingcap/tidb#50305
2024-02-27 07:26:01 +00:00
c1b70d56de planner: add more test cases for plan cache with generated columns (#51323)
ref pingcap/tidb#45798
2024-02-26 11:05:22 +00:00
6af4bbaabb planner, executor: enhance the index join's choice (#51128)
close pingcap/tidb#47233
2024-02-26 10:30:37 +00:00
1438892b9f planner: add more test cases for plan cache with generated columns (#51314)
ref pingcap/tidb#45798
2024-02-26 07:32:00 +00:00
58e5284b3f planner,executor: fix join resolveIndex won't find its column from children schema & amend join's lused and rused logic for reversed column ref from join schema to its children (#51203)
close pingcap/tidb#42588
2024-02-23 02:52:58 +00:00
5b187e5e56 planner: standalone implement for PlanContext (#51237)
close pingcap/tidb#51236
2024-02-22 15:03:28 +00:00
7cc07580ec planner: remove useless variable (#51245) 2024-02-22 11:48:40 +00:00
3d1708f80c telemetry: remove the codes of Telemetry (#51202)
close pingcap/tidb#49939
2024-02-22 11:48:26 +00:00
1ee58bf15b planner: replace context in planbuilder to PlanContext (#51172)
ref pingcap/tidb#51070, close pingcap/tidb#51171
2024-02-21 10:49:57 +00:00
a0e0969e10 planner: fix ExtractCorrelatedCols method in PhysicalTableScan (#51205)
close pingcap/tidb#51204
2024-02-21 09:48:27 +00:00
72517a9915 planner: allow read from TiKV for sys schema when tidb_isolation_read_engines is set to tiflash (#51219)
close pingcap/tidb#51218
2024-02-21 08:45:33 +00:00
8e2e149ac8 planner: fix typos and add more comments (#51192) 2024-02-20 09:13:57 +00:00
4e202a4ff0 *: make sessionctx.Context depend on contexts in planner and expression (#51150)
close pingcap/tidb#51149
2024-02-19 11:04:56 +00:00
464a12651b build(deps): bump github.com/golangci/golangci-lint from 1.55.2 to 1.56.1 (#51089) 2024-02-18 06:57:01 +00:00
ee1864460f planner: introduce PlanContext to provide context for planner phase (#51074)
close pingcap/tidb#51070
2024-02-08 10:35:47 +00:00
fce2805f2a planner: skip MDL when analyzing table (#50928)
close pingcap/tidb#47475
2024-02-08 07:17:46 +00:00
c5eced17d0 expression: remove direct dependencies with sessionctx.Context for package expression (#51025)
close pingcap/tidb#51024
2024-02-08 02:10:15 +00:00
4c749f052b executor,planner: make used stats info thread safe (#51029)
close pingcap/tidb#50835
2024-02-07 09:40:22 +00:00
f5e0799dd7 *: store db ID in model.TableInfo and move SchemaByTable method out from InfoSchema (#50917)
ref pingcap/tidb#50959
2024-02-07 05:07:15 +00:00
526d738207 expression: refactor functions to build expressions (#50997)
close pingcap/tidb#50996
2024-02-07 03:05:45 +00:00
tpp
bbfea62623 planner: Correct cardinality estimate for subset index match (#50574)
close pingcap/tidb#50573
2024-02-06 16:16:15 +00:00
a0296bebe3 planner: stop pushing Agg down through Projection if substitution fail (#50932)
close pingcap/tidb#50926
2024-02-04 06:56:49 +00:00
b289dc9ad9 planner: use slices to eliminate branch check (#50911)
ref pingcap/tidb#47275
2024-02-01 13:16:54 +00:00
9bad2027d5 importinto: support import from stale read (#50852)
ref pingcap/tidb#49883
2024-02-01 11:15:24 +00:00
efe8523d53 planner/infoschema: add predicate pushdown for system tables (#50779)
ref pingcap/tidb#50305
2024-02-01 10:30:25 +00:00
6e022a5c31 table: introduce MutateContext and AllocatorContext for table.Table (#50862)
close pingcap/tidb#50861
2024-02-01 09:01:54 +00:00
c76fe3ff97 plan replayer: fix cannot load bindings when the statement contains in (...) (#50762)
close pingcap/tidb#43192
2024-01-31 13:54:25 +00:00
6210eddce8 bindinfo: replace record with bind keyword (#50822)
close pingcap/tidb#48875
2024-01-30 11:00:23 +00:00
7087f702e1 executors: record the index usage in each executors (#50643)
close pingcap/tidb#50261
2024-01-30 03:51:22 +00:00
ff050bb143 expression: add expression.BuildContext to build expressions (#50662)
close pingcap/tidb#50661
2024-01-29 11:27:22 +00:00
51e1e13494 *: update interface{} to any (#50770)
ref pingcap/tidb#50765
2024-01-29 07:21:29 +00:00
41f56d1e89 planner: fix name ambiguous check when building natural join without filter (#36012)
close pingcap/tidb#32044
2024-01-29 07:21:22 +00:00
1760a26d30 hint: refactor PlanHints (#50768)
ref pingcap/tidb#48875
2024-01-29 04:33:22 +00:00
dc54d6cd9a planner: move more hint code to the hint package (#50769)
ref pingcap/tidb#48875
2024-01-29 03:16:52 +00:00
6a87b80e2c sessionctx: fix data race of SessionVars.Status (#50729)
close pingcap/tidb#50715
2024-01-26 18:39:20 +00:00
c1299bbfc5 planner: move more hint code to the hint package (#50756)
ref pingcap/tidb#48875
2024-01-26 12:06:20 +00:00
f72e1d966c planner: add Sysdate into deferredFunctions when enable SysdateIsNow (#49949)
close pingcap/tidb#49299
2024-01-26 10:24:20 +00:00
9416934ea3 *: split planner errors and remove duplicate definitions (#50695)
ref pingcap/tidb#48875
2024-01-26 09:42:21 +00:00
de177d85b1 expression: use buildExprWithAst to implement evalAstExpr (#50660)
ref pingcap/tidb#50463
2024-01-26 04:16:50 +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
035df1a00a *: refactor limit hint (#50730)
ref pingcap/tidb#48875
2024-01-25 11:43:51 +00:00
f94e331475 planner: refactor some internal hint structures (#50720)
ref pingcap/tidb#48875
2024-01-25 08:03:21 +00:00
e42d0bf4e5 *: support tidb_opt_use_invisible_indexes (#50654)
ref pingcap/tidb#50653
2024-01-25 03:51:22 +00:00
4abe19251d planner: Correct error message for ALTER INSTANCE (#50700)
close pingcap/tidb#50699
2024-01-24 15:13:50 +00:00
230e1d07b6 bindinfo: add SetHintWarning to trace the hint warning (#50666)
close pingcap/tidb#48875
2024-01-24 11:27:21 +00:00
bc451d9f2e expression: provide BuildExprWithAst to build expression without planner context (#50464)
close pingcap/tidb#50463
2024-01-23 08:24:21 +00:00
dd85ed718a variable: remove StrictSQLMode in variable.SessionVars (#50624)
close pingcap/tidb#50589
2024-01-23 07:42:26 +00:00