Commit Graph

77 Commits

Author SHA1 Message Date
7c58082324 planner: fix tiflash path will be identified as table dual (#49338)
close pingcap/tidb#49285
2023-12-12 14:37:50 +00:00
45b4e4a9ed planner: check whether plan-cache is disabled each time when getting plan from the plan cache (#49373)
close pingcap/tidb#49344
2023-12-12 11:06:33 +00:00
cf23666766 planner: return an error when using prepared protocol with select-into statement (#49357)
close pingcap/tidb#49166
2023-12-12 06:36:18 +00:00
90e272abc3 planner: encapsulate binding operations behind 2 interfaces (#49261)
ref pingcap/tidb#48875
2023-12-08 02:25:23 +00:00
d9b43dfcb1 parser: support OPTIMIZE statement (#49205)
close pingcap/tidb#49204
2023-12-07 13:43:21 +00:00
e053c27f06 util/ranger: support use like to build range for new collation columns (#48522)
close pingcap/tidb#48181, close pingcap/tidb#49138
2023-12-05 13:20:49 +00:00
af07ff6820 *: fix return 1 topn when to set 0 topn in analyzeOption (#49068)
close pingcap/tidb#49080
2023-12-01 10:08:50 +00:00
598ccada40 *: code preparations for supporting build range for like function on new collation columns (#48972)
ref pingcap/tidb#48181
2023-11-30 13:14:48 +00:00
39df07d44b util/ranger: don't exclude start key for range from _ in like function (#48984)
ref pingcap/tidb#48181, close pingcap/tidb#48983
2023-11-30 10:56:49 +00:00
d4b41beec9 build/linter/util: exclude files according to the key of only_files (#48999)
close pingcap/tidb#48998
2023-11-29 11:17:47 +00:00
68271e99ee planner: refactor some code of the binding package (#48959)
ref pingcap/tidb#48875
2023-11-28 16:20:49 +00:00
651e77099b tests: update mysql-tester, enable table-lock in integrationtest (#48956)
close pingcap/tidb#45961
2023-11-28 12:02:48 +00:00
37afb03a53 planner: fix nil pointer at expression.(*CorrelatedColumn).Eval (#42789)
close pingcap/tidb#42739
2023-11-28 11:19:18 +00:00
46d4231c8b planner: standardize some terminologies in binding pkg (#48957)
ref pingcap/tidb#48875
2023-11-28 07:44:46 +00:00
fd92230588 expression: remove inner context cache in expression.ScalarFunction (#48940)
close pingcap/tidb#48916
2023-11-28 03:10:16 +00:00
ccbd1b5749 expression: replace EvalWithInnerCtx with Eval for PbConverter and ExplainInfo (#48917)
close pingcap/tidb#48914
2023-11-27 10:36:00 +00:00
d38039e62b planner: don't change the multi stage count's final return type (#48675)
close pingcap/tidb#48643
2023-11-27 09:44:44 +00:00
d3f399f25d *: fix data race of Column.GeneratedExpr (#48888)
close pingcap/tidb#44919, close pingcap/tidb#48191
2023-11-27 08:19:15 +00:00
6ead0ee184 tests: move more test cases in pkg/plan to integrationtest (#48877)
ref pingcap/tidb#45961
2023-11-27 05:05:43 +00:00
29e36ea7e3 store/mockstore: Use Expression.Eval to replace EvalWithInnerCtx for mockstore (#48771)
close pingcap/tidb#48770
2023-11-24 15:46:13 +00:00
8583ab5320 planner: fix possible inconsistent output cols among union's children (#48775)
close pingcap/tidb#48755
2023-11-24 12:53:44 +00:00
e9d906266b planner: refine error message of split clustered index (#48867)
close pingcap/tidb#47686
2023-11-24 10:52:15 +00:00
15b7cdbd5d planner: standardize some terminologies in binding pkg (#48880)
ref pingcap/tidb#48875
2023-11-24 10:02:52 +00:00
27d2ba5fdf util/ranger: add missing Selection for range scan from like on PAD SPACE column (#48845)
ref pingcap/tidb#48181, close pingcap/tidb#48821
2023-11-24 08:23:44 +00:00
8243680d8a planner: avoid to use ScalarFunction.GetCtx in some planner codes (#48794)
close pingcap/tidb#48793
2023-11-24 05:47:44 +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
b8515ae354 session: move session interface into new package (#48792)
ref pingcap/tidb#44940
2023-11-23 05:28:11 +00:00
077a3e96cb tests: Update mysql-tester, move tests related with RowsAffected and LastMessage (#48789)
ref pingcap/tidb#45961
2023-11-23 04:11:49 +00:00
204c9accf0 planner: replace EvalWithInnerCtx with Eval in exprToString in planner (#48788)
close pingcap/tidb#48787
2023-11-23 04:11:42 +00:00
3ed7732958 planner: fix a panic during column pruning (#47883)
close pingcap/tidb#47331
2023-11-22 10:47:42 +00:00
297872a7b2 statistics: move interfaces out of the util package (#48612) 2023-11-22 09:41:51 +00:00
9062834986 expression: add ctx to expression.Eval (#48609)
close pingcap/tidb#48608
2023-11-22 05:29:40 +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
5e652fd292 parser: Add 'SHOW BINARY LOG STATUS' (#48678)
close pingcap/tidb#48673
2023-11-20 09:05:41 +00:00
20e72af422 *: pass connection_id and connection_alias to tiflash (#48471)
close pingcap/tidb#48470
2023-11-20 05:40:11 +00:00
657f0d94a9 pkg: stop using math/rand.Seed (#48653) 2023-11-17 06:00:53 +00:00
2f2f916926 expression: always use the ctx in parameter for method Equal in all expressions (#48596)
close pingcap/tidb#48595
2023-11-17 05:09:47 +00:00
ab354f3e5c tests: move more tests to integration test (#48647)
ref pingcap/tidb#45961
2023-11-17 03:42:47 +00:00
bee28760d8 parser/executor: admin show/set bdr role (#48504)
ref pingcap/tidb#48519
2023-11-16 12:44:16 +00:00
3f1c6985c8 planner: quick fix the panic issue when restoring hints from a plan (#48640)
ref pingcap/tidb#46791
2023-11-16 07:51:47 +00:00
5960d0d9bb planner: fix index merge union case couldn't sink limit into index merge reader (#48590)
close pingcap/tidb#48588
2023-11-16 03:12:46 +00:00
87e121f526 tests: update mysql-tester, move more tests to integration test (#48617)
ref pingcap/tidb#45961
2023-11-16 02:09:46 +00:00
625dc4e3cd expression: use parameter ctx to do evaluate instead of the inner one for all builtinFuncs (#48409)
close pingcap/tidb#48408
2023-11-14 12:38:16 +00:00
ebb7568fda planner: Improve the DoOptimize function names to minimize unnecessary confusion (#48540) 2023-11-13 07:32:14 +00:00
831c698acc planner: add rand test for cnf/dnf index merge case (#48363)
close pingcap/tidb#47759
2023-11-09 06:02:13 +00:00
83e39bc83a planner/core: keep sort operator when ordered by tablesample (#48315)
close pingcap/tidb#48253
2023-11-08 17:17:12 +00:00
184aa7e3c3 planner: fix the issue that plan cache may return wrong result when comparing datetime column with unix_timestamp (#48413)
close pingcap/tidb#48165
2023-11-08 16:41:12 +00:00
c131521d69 planner, CTE: Fix default inline CTE which contains agg or window function and refactor inline CTE strategy (#48188)
close pingcap/tidb#47711
2023-11-08 11:09:42 +00:00
21844d0330 executor: return query watch id (#46626)
ref pingcap/tidb#43691
2023-11-07 10:29:11 +00:00
286e8521ac planner: eliminate useless scalar subqueries in some scenarios of aggregate queries (#47550)
close pingcap/tidb#45822
2023-11-07 02:18:41 +00:00