03003538d1
*: fix a lot of typos ( #18917 )
2020-08-03 11:03:33 +08:00
6ce8f0f56a
txn: support pessimistic transaction amend for specific ddls ( #18447 )
2020-07-29 11:35:31 +08:00
5973d144de
brie: add integration test for br ( #18797 )
...
* brie: add integration test for br
* update br dependency
* fix ci
* fix ci
* address comment
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-07-28 19:59:02 +08:00
29178dfa8d
planner, executor: support broadcast join for tiflash engine. ( #17232 )
...
* support batch cop for tiflash
* support batch cop
* support join push down to tiflash
* refine
* change pb
* push join
* fix
* add hint
* refine hint
* add ranges
* fix
* fix
* fix push down
* fix index
* enable distsql for join
* add a session var to disable/enable broadcast join
* fix bug
* fix bug
* tiny fix
* enable cast decimal pushdown to tiflash
* fix
* fix bc join bug
* make broadcast plan stable
* refine code
* fix bug
* basic support for multi table broadcast join
* fix bug
* basic cbo for broadcast join
* improve
* fix bug
* remote useless code
* add tests
* pass unit tests
* refine code
* support execute summary info for broadcast join
* fix bug in explain for broadcast join
* format code
* remove un-needed code
* fix make dev
* address comments
* Hanfei/join merge (#7 )
* enable exec details for batch cop
* format code
* fix test
* change tidb_opt_broadcast_join to global vars
* Ban cartesian join to be pushed down to TiFlash (#8 )
* merge master (#10 )
* merge master
* fix bug
* fix bug
* fix ut
* check session var conflict
* Add perfer local hint for broadcast join (#12 )
* update
* remove useless code
* remove useless code
* update parser
* add test for prefer local join
* use bcj_local
* update go.mod
* refine planner
* refine comments
* fix make dev
* fix make dev
* update parser
* address comments
* fix make dev
* disable broadcast join when new collation is enabled
* Update planner/core/exhaust_physical_plans.go
Co-authored-by: Zhuomin(Charming) Liu <lzmhhh123@gmail.com >
* address comments
* fix
* address comments
* fix tests
* address comments
Co-authored-by: xufei <xufeixw@mail.ustc.edu.cn >
Co-authored-by: xufei <xufei@pingcap.com >
Co-authored-by: 虎 <ichneumon.hu@foxmail.com >
Co-authored-by: Zhuomin(Charming) Liu <lzmhhh123@gmail.com >
2020-07-27 12:41:36 +08:00
1fed1fb895
tests: remove incorrect use of FLUSH PRIVILEGES ( #18361 )
2020-07-24 23:25:14 +08:00
596c0eb107
session: fix the problem that lost connection in the next sql after out of memory quota ( #18567 )
...
* fix lost connection in the next sql after out of memory quota
* Fix the problem that a statement panic in a transaction but the transaction did not rollback.
* add recover in StmtCommit
* Fix the problem that a statement panic in a transaction but the transaction did not rollback again.
* Fix the problem that a statement panic in a transaction but the transaction did not rollback again.
* fix lost connection
* fix errors
* remove memTracker from StmtCommit
Co-authored-by: Zejun Li <lizejun@pingcap.com >
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-07-22 18:49:04 +08:00
ef913dc0c8
*: fix some missing set kv variables ( #18620 )
...
Signed-off-by: Tina Fritz <tina77fritz@gmail.com >
2020-07-17 15:05:47 +08:00
2a5fb55194
session: stabilize test TestBatchCommit ( #18625 )
...
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
2020-07-16 12:52:18 +08:00
c277e67ac9
session: add a mutex in TxnState.initStmtBuf ( #18617 )
2020-07-16 11:40:16 +08:00
297acf7e82
log: add tidb_log_desensitization global variable to control whether do desensitization when log query ( #18578 )
...
Signed-off-by: crazycs520 <crazycs520@gmail.com >
2020-07-15 15:44:56 +08:00
761a961ba0
kv: refactor MemBuffer and reduce the memory usage ( #18372 )
2020-07-15 15:26:25 +08:00
b122d58ccb
executor: add deprecation warning for hash_join_concurrency ( #18453 )
...
Signed-off-by: niedhui <niedhui@gmail.com >
2020-07-13 19:29:37 +08:00
2b0b34b88e
executor: kill tableReader for each connection correctly ( #18277 )
2020-07-09 18:09:08 +08:00
2dfae9850a
executor: make hashjoin using executor_concurrency ( #18213 )
2020-07-08 13:41:10 +08:00
3cd5260773
ddl: collect actionTypes for schema change ( #18195 )
...
* record action types in schema change history
* change comments
* remove comment
* refactor, remove some params and return values
* change value to pointer, remove useless comments
* refactor comments
* change return value
* refactor
* remove all info
* fix action type append
* update comment
Co-authored-by: Lynn <zimu_xia@126.com >
2020-07-08 11:41:09 +08:00
180c021271
kv: fix KVVars not set on Transaction ( #18351 )
2020-07-03 16:20:02 +08:00
4eb9d83eae
*: allow different shard_row_id prefixes in one transaction ( #18181 )
...
* *: allow different shard_row_id prefixes in one transaction
* Apply suggestions from code review
Co-authored-by: tangenta <tangenta@126.com >
* Update sessionctx/variable/session.go
Co-authored-by: tangenta <tangenta@126.com >
* add comments
* add unit test
* add var validation
* update builtinGlobalVariable
Co-authored-by: tangenta <tangenta@126.com >
2020-06-29 14:38:06 +08:00
773b29102d
charset: add missing ascii check( #18193 )
2020-06-27 15:34:26 +08:00
3b63270909
telemetry: Add telemetry initial implementation ( #18180 )
...
Signed-off-by: Breezewish <me@breeswish.org >
Co-authored-by: crazycs <crazycs520@gmail.com >
Co-authored-by: Lynn <zimu_xia@126.com >
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-06-24 14:41:46 +08:00
c98514e751
executor: unify executor concurrency ( #16999 )
2020-06-22 17:39:32 +08:00
63c0ef8e5d
planner: save explain result of plan in session for `explai ... ( #17687 )
2020-06-19 14:07:53 +08:00
c2c02cde4b
*: support record kv/pd time for a SQL statement ( #17591 )
2020-06-18 21:17:48 +08:00
b59cb1a94d
planner, session, util: support Insert hint ( #16966 )
2020-06-17 15:56:01 +08:00
b8fb4b0965
metrics: distinguish transactions by mode ( #17912 )
2020-06-15 16:20:38 +08:00
a8da23c254
test: fix data race caused by update global config ( #17964 )
...
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com >
2020-06-12 13:05:27 +08:00
f139821c82
session,executor: tiny clean up the runStmt function ( #17911 )
...
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com >
2020-06-11 22:11:58 +08:00
405a5d009d
sessionctx: add optimization-time and wait-TS-time into the slow log ( #17869 )
2020-06-10 10:41:50 +08:00
05b2e2bdcc
*: refactor Execute() and clean up code ( #17678 )
...
- implement Execute using ExecuteStmt
- Execute is only for internal usage and accept only one statement
- clean up the old execute function
2020-06-09 13:58:39 +08:00
1887f49922
session,server: refactor the execute statement processing ( #17555 )
...
The executor maybe still refering `txn` inside the Next() function.
Do not call txn.Commit() until the executor close.
2020-06-05 19:19:57 +08:00
d66d5028da
*: support plain insert on cluster index table ( #17674 )
2020-06-05 13:23:43 +08:00
35e2d3a081
*: add global variable tidb_slow_log_masking to control masking slow log query ( #17637 )
2020-06-05 09:15:41 +08:00
2c55650617
*: make QPS more realistic ( #17560 )
2020-06-04 20:00:43 +08:00
d53336bd4a
planner: support sql_select_limit session / global variable ( #17444 )
2020-06-02 18:02:29 +08:00
3adb557c97
ddl, variable: add system variable to control Clustered Index feature ( #17561 )
2020-06-02 10:48:28 +08:00
8a164d2cce
planner: improve the error message for hints defined more than once ( #16301 )
2020-06-01 23:21:18 +08:00
64f0d4d211
planner: fix wrong prepare plan after isolation read changed ( #16293 )
2020-06-01 18:02:48 +08:00
7ca3d9cadc
bindinfo, record how bindings are created in SQL bindings. ( #17254 )
2020-05-27 09:56:40 +08:00
a3d5082094
sessionctx, executor: add session var to control explicit insertion on auto_random column ( #17102 )
2020-05-26 20:32:10 +08:00
f72b5984dd
executor: set the DDL query string instead of execute ( #17407 )
2020-05-26 15:48:13 +08:00
38d63c2fa5
planner,table: optimize partition pruning performance for range columns ( #17249 )
2020-05-21 15:03:22 +08:00
997b986387
session: fix a bug that upgrading from 3.1.1 to 4.0 fails ( #17293 )
2020-05-19 21:18:24 +08:00
ac30f5322e
mockstore: introducing embedded unistore ( #17156 )
2020-05-18 17:28:44 +08:00
ea2e215ff8
*: fix a bug caused by the wrong collation setting which leads to the wrong result of collation function ( #17116 )
2020-05-15 13:30:49 +08:00
526a711c67
session, tikv: allocate task IDs for distsql requests ( #16520 )
2020-05-13 11:47:05 +08:00
8ea2ed03e7
session: Move OptimizerUseInvisibleIndexes from SmtmCtx to SessionVars ( #17040 )
2020-05-09 08:41:05 +08:00
26e946d25e
plannercore: ignore invisible indexes in optimizer ( #15421 )
2020-05-07 11:00:40 +08:00
b95d8578fa
UCP: improve UT coverage of package planner, part 1 ( #16093 )
2020-05-06 20:20:09 +08:00
5d74cf582d
executor: fix unique index point get read with delete first ( #16965 )
2020-05-04 22:11:56 +08:00
30f6f32708
tests: abstract Cluster interface for introducing new mock... ( #16940 )
2020-04-30 10:46:55 +08:00
2c60f3d38a
test: stable test cases ( #16913 )
2020-04-29 21:46:56 +08:00