Commit Graph

1483 Commits

Author SHA1 Message Date
0c822d13a1 util: avoid spilling to disk after rowContainer has been closed. (#19750) 2020-09-09 13:04:52 +08:00
449587a085 *: using standard error to replace terror (#19425) 2020-09-08 20:15:51 +08:00
2f2c57ecc8 executor, util: fix TestGlobalMemoryTrackerOnCleanUp ci error (#19863) 2020-09-08 18:15:46 +08:00
47270445d9 server: fix the missing detachment for the mem/disk tracker (#19794) 2020-09-08 10:48:51 +08:00
4f9b3508dd infoschema: add digest for process list (#19622)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-07 13:23:39 +08:00
41176776a7 util: fix unstable unit test testDiskSerialSuite.TestRemoveDir (#19762)
* fix

* fix

Co-authored-by: wjHuang <huangwenjun1997@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-05 17:33:55 +08:00
a428d472e9 *: remove the unused terminology (#19727)
* *: remove the unused terminology

* rename back

* delete more

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-04 17:12:01 +08:00
5717194f8c executor: Extract plan id from execution summaries for TiFlash cop response (#19791)
* extract plan id from execution summaries for tiflash cop response

* fix ci error

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-04 16:26:01 +08:00
0338bce029 expression: fix unmatched column lengths errors caused by builtinGreatestStringSig and builtinLeastStringSig (#19754) 2020-09-03 16:22:43 +08:00
fd328394d4 executor, ddl: show full tables SYSTEM VIEW info (#19451)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-02 10:01:40 +08:00
1cab3d5947 *: fix bug of same type plans with different plan digest (#19519) 2020-09-01 21:55:20 +08:00
915d84d7ad executor: add pessimistic lock keys runtime information (#19547)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-09-01 20:46:31 +08:00
5d3cdf5d17 *: add execution retry time in slow log and slow_query and statement_summary (#19625)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-09-01 11:16:52 +08:00
438945d294 *: enable clustered index by default (#19582) 2020-08-31 16:54:51 +08:00
117b3e4400 plan, partition: re-implement hash partition pruning to support in and or and some other functions (#18574) 2020-08-28 17:14:42 +08:00
ba60cf5a69 charset: implement utf8_unicode_ci and utf8mb4_unicode_ci collation (#18776) 2020-08-27 23:20:48 +08:00
2aa64f562b test: stabilize leak test (#19526) 2020-08-27 16:39:27 +08:00
db3c96b3ff executor: add transaction commit runtime information in slow log (#19366) 2020-08-27 16:18:47 +08:00
b78f4896fe statistics, util/ranger: improve selectivity calculation for DNF filters (#18741) 2020-08-27 15:40:12 +08:00
933c0667bf executor: reduce parameter count for detach ranges methods (#19486)
* executor:  add merge flag

* use fields to pass more params

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-27 10:28:52 +08:00
945f7cc4a0 ddl, tables: support the column type change between the integer types (#19059) 2020-08-26 21:30:14 +08:00
cf0297590e server: fix region table http response (#19437)
Signed-off-by: disksing <i@disksing.com>
2020-08-26 20:50:52 +08:00
eff7837795 executor: support 'recover index' in clustered index tables (#19284)
* support 'recover index' in clustered index table

* ddl: add truncate to buildCommonHandleFromChunkRow

* executor: truncate the updated handle

* executor: set core.HandleCols in the initialization of RecoverIndexExec

* refine code

* remove unused code

* fix integration test

* fix integration test

* address comment

* early return when recovering clustered pk

* remove panic

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-26 11:51:52 +08:00
d355b82f1c expression: unicode_ci support when infer collation and charset information (#19142)
* add mix unicode_ci collation support

* comments change

* bug fix

* add test

* refactor illegal mix collation message

* fmt

* fix check

* fmt

* refactor infer collation

* refactor infer collation

* add charset info

* address comments

* return bin if something wrong

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-26 11:08:21 +08:00
1b56a070eb util: fix typo s/goods/good and update some function (#17612) 2020-08-25 22:34:32 +08:00
xhe
963b82a0d7 tidb-server: try best to get a meaningful IP (#18786) 2020-08-25 16:18:04 +08:00
e6a69309a5 range: build right range for NULL value on index column (#19385) 2020-08-25 13:55:49 +08:00
2f100eca2b config: Add labels configuration (#19212)
* add labels

* add config test

* fmt file

* add test and example

* add intergration test

* add comment

* address the comment

* solve test error

* address the comment

* fix comment

* fix comment error

* remove example

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-24 19:17:51 +08:00
9620b710a0 executor: fix log desensitization bug in prestmt (#19392) 2020-08-24 17:31:51 +08:00
0d997f2b8b update pd / br / unistore / tidb-tools dependencies (#19323) 2020-08-20 16:55:34 +08:00
4774cb9505 util: add encryptWriter/Reader interface to support encrypt spilled file (#19070) 2020-08-19 21:21:32 +08:00
a2e2ce6339 *: use int instead of fmt.Stringer as executor id (#19207) 2020-08-19 13:39:31 +08:00
cd8654fe6f ranger: support using nulleq conditions to calculate index ranges (#19035) 2020-08-19 12:45:24 +08:00
92513a2f4d util: create the tmpdir if the directory is removed by mistake. (#18970) 2020-08-18 22:10:44 +08:00
ea3da25984 *: record more rpc runtime information in cop runtime stats (#18916) 2020-08-18 16:34:07 +08:00
4f96c84637 util/rowcodec: make IsRowKey() recognize common handles (#19228) 2020-08-17 13:48:28 +08:00
5184a0d706 executor: fix the bug: can not join if join keys are type bigint and type bit (#19032)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-14 19:44:48 +08:00
37984d7cb0 tests: improve tests for Windows platform (#19088)
* tests: improve tests for Windows platform

* fix race build

* update badger to fix kill issue on Windows

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-13 17:17:19 +08:00
3f38fa5d02 executor, planner: enable duplication check on prefix clustered index (#19099)
* executor, planner: store clustered prefix index intact

* make fmt

* address comment

* decoding row value is prior than decoding key

* unexport DecodeHandleToDatum()

* make fmt

* address comments

* fix unit test: TestSplitRegionTimeout
2020-08-13 14:05:18 +08:00
148f2d456b planner: add store type to statement summary (#17825) 2020-08-12 19:28:17 +08:00
3b35c89958 util/ranger: fix explain does not display range[NULL, NULL] (#19028) (#19068) 2020-08-11 17:23:01 +08:00
xhe
a0160612a8 ddl: support ALTER PLACEMENT clause (#19065)
* ddl: check count here

* ddl: drop all rules that will be overrided

* ddl: change ID format

* ddl: local placement deifinition

* ddl: support `ALTER PLACEMENT` clause

* ddl: add test cases

* ddl: fix ID format

* ddl: copy comments too

* ddl: allow ignore replicas with dict constraints

* ddl: rename COUNT to REPLICAS

* ddl: clone method for RuleOp

* ddl: checkPlacementSpec => buildPlacementSpec

* ddl: remove TODO
It is possible to incrementally add replicas. Consider drop later. Let
us support it correctly first.

* ddl: ID format
Datbase/schema ID is added back. A common prefix will improve the
efficience of PD batch operation. Drop a whole db/table will only need
one loop for rules.

* ddl: move const/util to placement package

* ddl: fix test

* ddl: fix format error

* ddl: error check fix

* ddl: use an explicit condition flag

* ddl: adapt parser changes

* ddl: fix go.mod/simplify code path

* ddl: go mod tidy

* ddl: improve tests

* ddl: return new rules instead of appending

* ddl: return constraints instead of appending

* ddl: fix test

* ddl: one more test

* ddl: remove rules rollback, meaningless

* ddl: fix slice

* ddl: add period to comments

* Update ddl/ddl_api.go

Co-authored-by: tangenta <tangenta@126.com>

* ddl: remove unused arguments

* infosync: do not request PD if no ruleOperations

* ddl: a new test suite

Co-authored-by: tangenta <tangenta@126.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-11 15:05:05 +08:00
aa22a9088c util: make rowContainer can spill again after calling reset. (#19058) 2020-08-11 11:27:29 +08:00
07ae6078e8 *: support clustered index for fast analyze (#18767) 2020-08-07 19:22:14 +08:00
931ff98df5 simple fixes for the staticcheck linter (#18923)
Note that this found 2 bugs where errors were being silently ignored.

These are really simple fixes that didn't require much thought.
There are still more staticcheck warnings that should be fixed.

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-06 13:38:17 +08:00
cd3e5ed826 *: update kvproto, PD, BR and unistore dependencies (#18938) 2020-08-05 13:30:26 +08:00
xhe
4ef3b86e5a *: support ALTER PARTITION clause (#18611) 2020-08-04 10:15:13 +08:00
0887dc6c56 util: add checksumWriter/Reader interface to support evaluate checksum (#18649) 2020-08-03 21:50:04 +08:00
d0639b0056 *: use the newly designed memdb (#18657)
* *: use the newly designed memdb

* address comments

* remove duplicated comments

Co-authored-by: Evan Zhou <coocood@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-03 20:51:05 +08:00
950ca5062c plan: optimize the performance of decodePlan for big union query (#18891) 2020-08-03 14:17:36 +08:00