Commit Graph

1902 Commits

Author SHA1 Message Date
4550e91919 ddl: Fix rename table bug (#4862) 2017-10-26 12:41:47 +08:00
2285e65cd9 excutor: tiny code cleanup (#4899) 2017-10-25 21:15:08 +08:00
a84bf5bf35 executor: use max uint64 as analyze's start timestamp (#4892) 2017-10-25 16:51:26 +08:00
3d7167273b plan: join's default value length should be changed when do column pruning. (#4882) 2017-10-25 15:44:03 +08:00
1f4fc35320 executor, plan: correct the schema type of ShowStmt (#4886) 2017-10-25 13:55:20 +08:00
b0d20c9d6b *: parse and ignore REPLICATION CLIENT/SLAVE, USAGE privileges in grant statement (#4870) 2017-10-25 00:26:53 -05:00
e96321b3f1 ranger: simple improvement for range calc for pk. (#4767) 2017-10-24 20:21:23 +08:00
ebf090b0dc plan, executor: remove some XXStmt from resolver.go (#4823)
* plan, executor: remove AdminStmt, AlterTableStmt, AnalyzeTableStmt, DropStatsStmt, CreateIndexStmt,
CreateTableStmt, DoStmt, DropTableStmt, DropIndexStmt, RenameTableStmt, SetStmt, ShowStmt from resolver.go
2017-10-24 06:16:34 -05:00
0306bb0070 tidb: support a plan cache for prepared statements (#3956)
* tidb: support a plan cache for prepared statements
2017-10-24 00:55:51 -05:00
ed7f68ca9b *: Add Row interface (#4859) 2017-10-23 11:36:28 +08:00
e15238423f executor, plan: add cast for the expr of assignments of updateList (#4850) 2017-10-20 08:58:33 -05:00
7afae3f89c *: support write slow query log into seperate files (#4804) 2017-10-20 14:22:10 +08:00
1b87bc1d55 executor: fix a select bug when handle is MaxInt64 (#4835) 2017-10-19 21:38:55 -05:00
c49c2d333d inspectkv: rename package inspectkv to admin (#4815) 2017-10-19 21:33:24 -05:00
16eb0ae33b executor: fix bug when auto_increment meets unsigned. (#4824) 2017-10-19 15:31:16 +08:00
1a987dd825 *: Support the operation of cancel DDL jobs (#4753)
* *: support cancel the DDL job
2017-10-18 22:28:04 -05:00
b9bf914312 *: dummy implementation for show profiles statement (#4795)
* *: dummy implementation for show profiles statement

* address comment
2017-10-17 03:27:12 -05:00
d5a26905ef parser: add int1, int2, int3, int4, int8 type support (#4803) 2017-10-17 03:15:33 -05:00
e452dc51aa *: add schema state check (#4801) 2017-10-17 15:52:20 +08:00
21c21973c0 executor: make slow-query log more terminal friendly (#4764) 2017-10-16 06:03:03 -05:00
4bfa5faf63 executor: Add unit test case for ShowExecutor. (#4763) 2017-10-16 10:50:14 +08:00
a34964a36a *: improve the column info for client (#4770)
Add table/database info in the response message.
2017-10-15 08:27:13 -05:00
d88344f869 plan, tidb: support plan cache for SELECT statement (#4644) 2017-10-11 22:34:04 -05:00
182476ea0f stats: fix bug when merge sample collectors (#4752) 2017-10-11 22:05:47 -05:00
51a6e6fc48 *: fix ineffectual assignments #4713 (#4746) 2017-10-11 21:26:03 -05:00
f2f473d02e executor: little improvement for multi-delete. (#4742) 2017-10-11 01:59:54 -05:00
7d2804e43c *: check sc.IgnoreZeroInDate when parsing string or number to date/datetime/timestamp (#4732) 2017-10-10 23:38:53 -05:00
a7aaa64c76 parser: parse error compatible (#4238) 2017-10-10 13:00:56 +08:00
3e1d036336 *: log the caller of "terror.Log()" (#4729) 2017-10-10 11:26:43 +08:00
64b5bc8ccd mysql,ddl: fix #4684, unsigned integer column length is not consistent with MySQL (#4693) 2017-10-09 17:24:37 +08:00
9c2ea17722 *: enforce errcheck in Makefile (#4724)
checks all errors and enable errcheck in Makefile

Fixes https://github.com/pingcap/tidb/issues/4668
2017-10-09 17:16:10 +08:00
2c90dd0ca8 exectuor: fix data race in test (#4714) 2017-10-08 22:07:02 -05:00
eb8df3519a *: prepare to enforce errcheck, part1 (#4670) 2017-09-30 16:23:37 +08:00
883b9aea5d *: open analyze push down (#4698) 2017-09-30 13:48:36 +08:00
e6360b1efc *: support SyncLog kv request option (#4689) 2017-09-30 00:15:54 -05:00
407719e79b executor: change to structured slow log for friendly JSON output (#4657) 2017-09-29 18:19:23 +08:00
a6b5c666c5 *: support NotFillCache kv request option (#4658)
If TiDB send a request with NotFillCache option, the LRU cache of underlying
storage will not be touched. select statement with SQL_NO_CACHE will use it.
2017-09-29 02:06:38 -05:00
56ed7f129d expression: change like function's behavior. (#4683) 2017-09-29 10:27:23 +08:00
e3ab386874 *: revert 4669 "make prepare stmt retriable when schema is out-dated" (#4676)
* Revert "executor: analyze use NewSelectResult (#4667)"

This reverts commit d1d78b726ba6ba4c79d38ce95252fc41753db02e.

* Revert "table: Speed up the add index operation (#4632)"

This reverts commit d782ce103eea7680f289f6a35576dc9349bb0bb4.

* Revert "*: make prepare stmt retriable when schema is out-dated. (#4669)"

This reverts commit 3dfbf52e64cc0af6039758d169bf133b965f5584.
2017-09-28 16:19:53 +08:00
d1d78b726b executor: analyze use NewSelectResult (#4667) 2017-09-28 13:07:35 +08:00
3dfbf52e64 *: make prepare stmt retriable when schema is out-dated. (#4669) 2017-09-28 10:41:22 +08:00
a6756a4eee *: make insert with calculated value behave the same as MySQL. (#4603) 2017-09-27 19:59:31 +08:00
0fd5b5167e *: change the way transfer handle. (#4348) 2017-09-27 03:47:07 -05:00
5a47a06dbf *: move tests (#4651) 2017-09-27 14:38:45 +08:00
5200745d6a distsql,store/tikv: SelectDAG function parameter refactor (#4645)
* distsql,store/tikv: SelectDAG function parameter refactor

1. move some distsql.SelectDAG parameter to kv.Request struct
2. modify tikv.RPCContext struct, remove kvrpcpb.Context in it
3. let tikvrpc.Request struct share Context with its subcommand request
2017-09-27 12:33:05 +08:00
0094512187 *: update start ts for NewTxn. (#4628)
The start_ts is only updated in `ActivePendingTxn`, it need to be updated in `NexTxn` as well.
2017-09-25 20:07:24 +08:00
6f84392d40 *: optimize SortExec (#4622)
* *: change key of orderByRow from "key []types.Datum" to "key []*types.Datum"

* address comment
2017-09-25 19:50:26 +08:00
25b5a2ce18 *: Refactor aggregation (#4605)
Aggregation results were stored in aggregation functions, so one map is created for each function to store different groups’ results, which requires much memory.
The aggregation functions are refactored and are now stateless, and the maps are kept in executor (executor.HashAggExec and mocktikv.aggregateExec) so that only one map is needed to store all the functions’ results, which reduced the memory usage.
2017-09-22 19:41:01 +08:00
d4adb77e4a executor: set default value for analyze push down (#4610) 2017-09-22 06:28:06 -05:00
a60bbd9560 expression: refactor "helper.go" (#4593) 2017-09-22 18:54:04 +08:00