Commit Graph

2796 Commits

Author SHA1 Message Date
ac91c75121 expression: implement shiftLeft function pushdown (#36677)
close pingcap/tidb#36733
2022-08-04 17:26:08 +08:00
b364cecdcc planner: use the unified parameters for plan cache (#36781) 2022-08-03 18:35:49 +08:00
6a6fa8a882 ddl: Add sql_require_primary_key sysvar (#36146)
close pingcap/tidb#28544
2022-08-03 17:20:06 +08:00
5b4a82dbf4 *: upgrade bazel timeout (#36776) 2022-08-02 11:10:05 +08:00
0b1d3e0da3 *: cleanup sysvar API usage (#36640)
close pingcap/tidb#36639
2022-08-02 07:54:04 +08:00
dd2e07658a planner: check virtual column for tiflash (#36771)
close pingcap/tiflash#5513, close pingcap/tidb#36773
2022-08-01 23:16:05 +08:00
xhe
9a16a8dd19 *: replace defer clean with t.Cleanup (#36722)
close pingcap/tidb#36721
2022-08-01 17:34:05 +08:00
158ba1a1d9 *: enable part revive for all code (#36703) 2022-08-01 14:02:06 +08:00
f459bb3a86 planner: avoid change the type of the input of sum/avg (#36372)
close pingcap/tidb#36371
2022-07-29 16:21:12 +08:00
11e9d8519d planner: set/clear not null flag when create a new baseBuiltinFunc (#36518)
close pingcap/tidb#36517
2022-07-29 10:31:11 +08:00
6baea73277 *: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (#36660) 2022-07-28 19:23:11 +08:00
15009a7c4e *: clean code (#36655) 2022-07-28 15:09:11 +08:00
61175e8a4d expression: fix return type of agg func bit_or when handling varbinary column (#36415)
close pingcap/tidb#36400
2022-07-22 14:59:09 +08:00
25d777df8c expression: fix extract day_microsecond/second/minute/hour from datetime (#36367)
close pingcap/tidb#36358
2022-07-21 01:53:08 +08:00
8baa28798c expression: fix the problem that the function cast duration as time do not respect system timestamp (#36283)
close pingcap/tidb#36279
2022-07-20 22:29:09 +08:00
f0717dfe07 statistics, sessionctx: introduce topn assisted cardinality estimation for string matching functions (#36210)
close pingcap/tidb#36209
2022-07-20 21:55:09 +08:00
ab513bf0ca ddl: support concurrent ddl (#32169)
* 1. init ddl tables

create tidb_ddl_job, tidb_ddl_reorg, tidb_ddl_history tables with raw meta write, these 3 tables is use to replace the ddl job queue and reorg and history hash table

* 2. setup concurrent ddl env and add ddl worker pool

adds the ddl worker pool definition, the ddl job manager will find a job and ship it to a worker in the worker pool.
Also, this commit provides a sessionctx wrapper, only use in ddl relate. it just wraps begin, commit and execute

* 3. add ddl manager to handle ddl job

* 4. reorg handler for concurrent ddl

just implements the partner of the reorg information.

* 5. manage ddl jobs for concurrent ddl

add the partner of add job, delete job and many others related to history job
because many of the functions need a session now, we just change the caller

* 6. add metrics for concurrent ddl

add metrics

* 7. support multiple tables

* 8. fix test

* 9. migrate ddl between table and queue

support switch between the old and new ddl framework, migrate the existing ddl job between queue and table

* 10. check tikv version and set reorg worker count according cpu count

* *: add featuretag on tests

Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>

* use a determined table id for 3 tables

* remove ctx value

* add GetSchemaVersionWithNonEmptyDiff function

* address tangenta and zimulala comment

* use only one etcd path

* make ActionRenameTable support multi-schema

* reset sql digest to make top sql work correct

* add comment

* fix test

* remove 0 for schema version lock

Co-authored-by: xiongjiwei <xiongjiwei1996@outlook.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
Co-authored-by: wjHuang <huangwenjun1997@gmail.com>
2022-07-20 21:20:07 +08:00
a5ec60fceb expression: fix accuracy loss problem in function COALESCE (#36264)
close pingcap/tidb#31600
2022-07-20 15:35:08 +08:00
51b8884fea expression: fix the issue that extracting day_microsecond/day_second/day_minute/day_hour from Time type emits wrong result (#36297)
close pingcap/tidb#34998
2022-07-19 19:07:07 +08:00
f84554bd07 expression: fix binary str numeric result type (#36258)
close pingcap/tidb#27698
2022-07-19 16:43:07 +08:00
de017e9eea expression: forbid aggregate function with json type pushdown to tiflash wrongly (#36271)
close pingcap/tidb#28753
2022-07-19 01:17:07 +08:00
4cade24ed6 *: support the binary plan through EXPLAIN format='binary' and tidb_decode_binary_plan (#36221)
ref pingcap/tidb#35889
2022-07-18 16:27:07 +08:00
b5690fefe7 expression: support pushdown repeat to tiflash (#36024)
close pingcap/tidb#36023
2022-07-15 11:41:05 +08:00
74102dd710 expression: support get_format pushdown to tiflash (#35950)
close pingcap/tidb#36035
2022-07-14 11:55:05 +08:00
7c45e671af expression: pushdown reverse to TiFlash (#35738)
close pingcap/tidb#35754
2022-07-13 12:53:05 +08:00
c815e5607a expression: implement rightShift function pushdown (#35872)
close pingcap/tidb#35871
2022-07-11 14:33:05 +08:00
1a5919fa77 expression: support time_to_sec pushdown to tiflash (#35739)
close pingcap/tidb#35900
2022-07-08 15:37:05 +08:00
55aea2787d *: use pdqsort to improve sort performance (#34404)
close pingcap/tidb#34250
2022-07-06 13:41:02 +08:00
114c922bc8 *: enable gosec (#35873)
ref pingcap/tidb#35345
2022-07-05 19:39:01 +08:00
e50b9430fc *: enable gci (#35823)
ref pingcap/tidb#35345
2022-07-04 14:53:02 +08:00
65e0b8e541 client: KV requests with source label (#34833)
close pingcap/tidb#33963
2022-07-01 19:46:39 +08:00
16df1942d0 *: add timeout for test cases (#35844) 2022-06-30 20:18:38 +08:00
c6103886b1 *: enable all gosimples (#35762)
ref pingcap/tidb#35345
2022-06-29 11:54:39 +08:00
1f40fc72a5 expression: use cloned RetType at evaluateExprWithNull when it may be changed. (#35759)
close pingcap/tidb#25813
2022-06-28 14:02:39 +08:00
d99b358225 *: only add default value for final aggregation to fix the aggregate push down (partition) union case (#35443)
close pingcap/tidb#35295
2022-06-28 12:08:39 +08:00
e2b55640c1 config, sysvar: map max-server-connections to max_connections (#35453)
ref pingcap/tidb#34960
2022-06-23 15:12:37 +08:00
e99d82a9b4 *: fix issue of cast string as time is incompatible with MySQL (#35455)
close pingcap/tidb#34539
2022-06-23 13:50:37 +08:00
d4dc6b54c6 *: enable staticcheck and prealloc on nogo (#35486)
ref pingcap/tidb#35345
2022-06-22 22:00:37 +08:00
e3cb4bdb27 expr: fix unix_timestamp range check (#35239)
close pingcap/tidb#32197
2022-06-22 17:42:37 +08:00
49603af359 expression: avoid padding 0 when implicitly cast to binary (#35053)
close pingcap/tidb#34823
2022-06-21 12:22:36 +08:00
1c02b4e90b parser: Add support for INTERVAL expr unit + expr (#30253) (#35390)
close pingcap/tidb#30253
2022-06-21 01:00:36 +08:00
44623f03f4 *: enable more flaky and update bazel config (#35500)
ref pingcap/tidb#35247
2022-06-20 21:46:37 +08:00
cd731af05a expression, util: add KeyWithoutTrimRightSpace for collator (#35475)
close pingcap/tidb#35451
2022-06-20 14:56:37 +08:00
9a77892ac8 execution: avoid decimal overflow and check valid (#34399)
close pingcap/tidb#30347, close pingcap/tidb#34388
2022-06-17 21:42:36 +08:00
580a68dff3 planner: fix cte-schema-clone will clone the old hashcode of its column if any (#35415)
close pingcap/tidb#35404
2022-06-17 16:50:35 +08:00
4ae78cdead expression: refine date_add/sub return type and precision (#35009)
close pingcap/tidb#9813, close pingcap/tidb#31799, ref pingcap/tidb#31867
2022-06-16 16:12:34 +08:00
d3e9114f44 *: enable more flaky test, enable more shard_count and update bazel config (#35300)
ref pingcap/tidb#35247
2022-06-13 17:52:32 +08:00
2b4a4c6d7a *: support bazel (#33691)
close pingcap/tidb#34083
2022-06-07 15:22:30 +08:00
85967fd3be *: implement chunk rpc encoding for unistore (#35114)
close pingcap/tidb#35113
2022-06-06 23:20:29 +08:00
7ffab33a47 variables: add concurrent DDL switch (#35028)
ref pingcap/tidb#32031
2022-06-06 14:56:29 +08:00