* 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>
* 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>
* 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
* 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>
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>