Commit Graph

8026 Commits

Author SHA1 Message Date
6e2d6c7aa7 ddl: fix cancel drop index error (#8504) 2018-12-07 23:29:23 +08:00
6bd8bddb12 planner/core: simple greedy join reorder based on CBO (#8394) 2018-12-07 16:34:19 +08:00
f72769cee4 sessionctx/variable: fix field(History) typo in TransactionContext (#8600) 2018-12-07 12:33:03 +08:00
d9e02b76dd expression: remove redundant "errors.Trace()" in "expression" package (#8609) 2018-12-07 12:20:31 +08:00
ea0dac5642 ddl: update parser to make TiDB treat charset and collate case insensitive (#8577) 2018-12-07 11:55:50 +08:00
fde9c72af5 expression, executor: castStringAsTime returns null when sql_mode is not strict (#8516) 2018-12-06 23:12:55 +08:00
e61bad0769 expression: handle corrupted length in uncompress builtin function (#8586) 2018-12-06 22:36:49 +08:00
d3296695ac proposal: support restoring SQL text from an AST tree (#8533) 2018-12-06 20:50:51 +08:00
49b0cd3369 executor: set projection concurrency build bellow aggregate (#8601) 2018-12-06 20:31:43 +08:00
93acd10f53 *: add context.Context to NewTxn(), tiny refactor (#8530) 2018-12-06 17:45:16 +08:00
98c72c6a8e stats: optimize unit test execution time (#8597) 2018-12-06 17:30:20 +08:00
126e44bf36 ddl: fast fail check for create index to accelerate CI (#8592)
➜  session git:(master) ✗ GO111MODULE=on go test  -check.f TestIndexMaxLength
before:
ok  	github.com/pingcap/tidb/session	18.229s
after:
ok  	github.com/pingcap/tidb/session	0.146s
2018-12-06 16:45:32 +08:00
312e0f7e9d session: skip global variable cache in unit test (#8594)
If the global variable cache is used, the test code has to sleep a while
to ensure it load the fresh data. This may slow the CI
2018-12-06 16:15:03 +08:00
50cb733565 tikv: accelerate tikv package testcase (#8562) 2018-12-06 15:31:46 +08:00
68d0e20d71 server: add http api for get ddl history (#8591)
* add http api for get ddl history
2018-12-06 13:53:41 +08:00
68a6291c05 executor: fix show create table for hash partition (#8477)
* executor: fix show create table for hash partition

* Update show.go

* Update show_test.go

* Update show.go
2018-12-06 10:24:30 +08:00
dbf140f835 *: support select, insert for hash partition table. (#8411) 2018-12-05 23:47:29 +08:00
ac3556b6cd plan: implementation phase framework of cascades planner (#8449) 2018-12-05 20:48:52 +08:00
f06f3ca2fe planner: support the transformation framework of the cascades planner (#7869) 2018-12-05 19:51:43 +08:00
93a18dfdc5 metrics: add percentage of CPU usage gauge (#8539) (#8580) 2018-12-05 14:47:04 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
9e5cf68dc4 tidb-server: validate txn-local-latches.capacity is not equal to 0 (#8558) 2018-12-05 13:35:05 +08:00
3128e9b98a *: Hide "Mem" column from SHOW PROCESSSLIST (#8543) 2018-12-05 11:42:58 +08:00
350a046975 executor,store/mockstore: add a test to mock get tso fail (#8566) 2018-12-04 22:10:08 +08:00
558e02dbce executor: fix grant operation in ANSI_QUOTES sql mode (#8561) 2018-12-04 20:55:24 +08:00
e478be7914 ddl: add ddl_reorg_batch_size variable to control ddl worker batch size and enlarge default batch size. (#8365) 2018-12-04 19:07:12 +08:00
cb4d5bd988 executor: support batch insert for insert values statement (#8420) 2018-12-04 17:44:50 +08:00
1cc9d4d53c expression: split aggregation descriptor for reuse (#8559) 2018-12-04 16:22:15 +08:00
b3e40bf94f ddl: alter table add partition on hash partitioned table (#8375) 2018-12-04 15:17:53 +08:00
103f2ac2a3 *: add a session variable for window function parser (#8511) 2018-12-04 11:26:59 +08:00
cbae4c6815 planner, executor: set memory size to MAXUint64 for prepare plan cache test (#8556) 2018-12-04 10:53:06 +08:00
6e27de255b expression: fix incorrect date arithmitical with negative interval (#8523) 2018-12-04 10:34:47 +08:00
8ddeeea939 gc_worker: add gc enable variable to enable/disable gc (#8282) 2018-12-03 23:37:39 +08:00
27007923d9 proposal: fix view proposal's markdown format (#8560) 2018-12-03 22:25:05 +08:00
c677187728 plan: support ? in Order By / Group By / Limit Offset clauses (#8206) 2018-12-03 21:48:54 +08:00
04682ce3b7 proposal: add more detail view implement proposal (#8416) 2018-12-03 19:59:39 +08:00
3b0610f347 config: fix comment typo (#8541) 2018-12-03 17:45:32 +08:00
0b8417614c ddl: support truncate table on hash partitioned table (#8401) 2018-12-03 16:12:41 +08:00
bc7a3154f1 add args info for retry (#8506) (#8509) 2018-12-03 15:30:08 +08:00
741adcee43 types: impl ast.Recoverable for ValueExpr and ParamMarkerExpr (#8519) 2018-12-03 10:15:30 +08:00
36bcf5db4a tidb/kv: remove useless errors.Trace (#8527) 2018-11-30 14:30:31 +08:00
4bcdb6d8ee executor: do not build range for NullOuterVal in IndexLookUpJoin (#8505) 2018-11-29 14:15:23 +08:00
d3d46e0715 plan: export MockTable and MockContext to be used in cascades package (#8503) 2018-11-29 13:34:52 +08:00
3b68ee59a6 planner: for UNION statements, ORDER BY cannot use column references including a table name (#8389) 2018-11-29 12:40:08 +08:00
9579be1e79 run go mod tidy (#8402) 2018-11-29 11:01:03 +08:00
654c6a9888 session: add GoString() for TxnState and make the log more use friendly (#8434) 2018-11-29 10:30:39 +08:00
2f6639d12b expression: add builtin function tidb_parse_tso (#8385) 2018-11-28 22:37:44 +08:00
d42a4b34c5 expression: a constraint propagate framework mainly for partition pruning (#7643) 2018-11-28 21:44:18 +08:00
e7e31fae3f *: add preparedStmt metric and add limit to max prepareStmt (#8405) 2018-11-28 20:37:50 +08:00
d301c16e0e ddl: fix a bug that cancel add index ddl job when workers are not run, which cause tidb ddl hang up (#8171) 2018-11-28 17:10:55 +08:00