4c8c918c43
executor: add conversion to opaque value for json_objectagg and json_arrayagg ( #37337 )
...
close pingcap/tidb#25053
2022-08-25 17:20:22 +08:00
d3483026ed
planner: mark the both side operand of NAAJ & refuse partial column substitute in projection elimination of Apply de-correlation ( #37117 )
...
close pingcap/tidb#37032
2022-08-24 18:02:21 +08:00
7f4091d993
expression: set json to right type ( #37054 )
...
close pingcap/tidb#37339
2022-08-24 17:18:21 +08:00
fe40d3ce27
expression: add json opaque value ( #37200 )
...
close pingcap/tidb#9996 , close pingcap/tidb#31918
2022-08-23 12:26:20 +08:00
d6ebc600f8
expression: make collation work with json type ( #37211 )
...
close pingcap/tidb#31640
2022-08-19 11:20:52 +08:00
7d401c5072
expression: fix incorrect unit test from #37036 ( #37115 )
...
close pingcap/tidb#37116
2022-08-19 11:00:52 +08:00
a664d28909
expression: implement castTimeAsDuration function pushdown ( #37036 )
...
close pingcap/tidb#37033
2022-08-15 18:30:50 +08:00
7d8c45aa4d
planner: provide a unified interface to set and get user variables and types ( #37046 )
...
ref pingcap/tidb#36598
2022-08-11 19:18:50 +08:00
d6d0ce7b10
*: gofmt code for adapting go 1.19 ( #36832 )
...
ref pingcap/tidb#36879
2022-08-11 12:50:49 +08:00
7fbe1d1a57
expression: implement elt function pushdown ( #36735 )
...
close pingcap/tidb#36734
2022-08-10 11:00:48 +08:00
28c934cdae
planner: finish todo in builtin_cast.go#L1945 ( #36921 )
...
close pingcap/tidb#36920
2022-08-09 16:16:47 +08:00
244b353a11
planner: support session level for the variable tidb_enable_prepared_plan_cache ( #36923 )
...
ref pingcap/tidb#36598
2022-08-08 11:18:47 +08:00
6418350e97
executor,expression: avoid to append nil to warnings ( #36304 )
...
close pingcap/tidb#31569
2022-08-05 17:00:06 +08:00
cb3fdcc847
feat: push down hexInt/hexStr function to tiflash ( #35902 )
...
close pingcap/tidb#35901
2022-08-05 13:10:06 +08:00
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
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