Commit Graph

131 Commits

Author SHA1 Message Date
096562ee8a executor: fix bug in insert (#5968) 2018-03-07 16:29:48 +08:00
e1121814d2 *: don't import golang.org/x/net/context as goctx alias (#5895)
Now that there is no conflict with sessionctx.Context, this can be
import directly
2018-02-24 03:40:56 -06:00
12c87929b8 *:fix some golint && ineffassign && misspell to improve GoReport Result (#5867) 2018-02-23 19:31:05 +08:00
4e1a114e68 *: move package context to sessionctx (#5890) 2018-02-22 18:03:38 +08:00
c92b3056c0 *: refine code for StmtTxn (#5763) 2018-02-08 07:07:12 -06:00
5d91dbd5a1 executor: pass operator label from Plan to Executor (#5821) 2018-02-08 13:33:11 +08:00
f1eefc147b *: handle dirty table in StmtTxn (#5711) 2018-01-31 02:30:06 -06:00
24333b3b29 *: don't record binlog when statement rollback (#5699) 2018-01-25 06:50:57 -06:00
0b23ff48a6 *: execute statement meets error should make no side effect (#5678) 2018-01-22 13:49:29 +08:00
888bc2a602 *: uniform the way to iterate rows within a Chunk (#5674) 2018-01-22 11:34:04 +08:00
a2a48b3085 executor: use batch get to speed up LOAD DATA (#5632)
* use batch get to speed up LOAD DATA
2018-01-19 15:58:00 +08:00
f57b8438bc table: index.addindices reuse temp buffer (#5600) 2018-01-17 05:32:30 -06:00
4df3a04023 executor: fillDefaultValues store casted default values (#5586) 2018-01-15 20:24:50 +08:00
ca97bfffe0 tables: when importing data, table.AddRecord has no needs to use temp BufferStore. (#5617) 2018-01-15 15:13:23 +08:00
3ce567630b executor: store column's fieldType in executor (#5619) 2018-01-12 16:57:31 +08:00
31b606d30d executer: optimization for insert ignore (#5508) 2018-01-12 11:09:25 +08:00
b7e7cd5d9a executor: lazily initialize InsertValues.colDefaultVals, because not every insert statement needs it. (#5589) 2018-01-09 22:36:04 +08:00
e9b450aa0a table: InsertExec eliminate unnecessary CastValue. (#5581) 2018-01-08 19:21:04 +08:00
eddff3429a *: importing data reduce memory allocations. (#5549) 2018-01-07 12:48:07 +08:00
140c3d0739 executor: "InsertExec.NextChunk" should use function "getRowsSelectChunk" (#5493) 2017-12-26 18:24:41 +08:00
c4fb12d60e executor: support Chunk for LoadData (#5465) 2017-12-21 22:44:59 +08:00
fe7900f176 executor: DeleteExec suport NextChunk (#5368) 2017-12-21 15:57:56 +08:00
3c418c5617 executor: implement NextChunk for ReplaceExec (#5370) 2017-12-21 13:41:21 +08:00
65b2b0d452 *: Set the batch delete/insert size by session variable (#5413)
We hardcode it to 20k. But if the row size is large. It will still break
the transaction size limitation. So we need to provide a way to set it
dynamicially.
2017-12-17 21:11:18 -06:00
f1e89cde19 *: use lower-case of github.com/sirupsen/logrus (#5400)
*: rename github.com/Sirupsen/logrus to github.com/sirupsen/logrus

* vendor: update pd

* vendor: update github.com/pingcap/tipb/go-mysqlx
2017-12-14 16:25:58 +08:00
6ee266d0ca executor: UpdateExec support NextChunk (#5372) 2017-12-14 15:32:06 +08:00
8f5f071c9b executor: InsertExec support NextChunk (#5352) 2017-12-10 22:01:31 +08:00
5f468489ab util: add kvencoder package, make transfer sql to key-values be possible. (#5236) 2017-11-29 18:01:31 +08:00
fb610e6429 *: change executor Next() interface to Next(goctx.Context) (#5223) 2017-11-26 21:17:33 -06:00
02f6bb27c7 *: remove goCtx from session struct (#5174)
1. go context should not be stored
2. change Executor interface to Open(goctx.Context)
3. many other changes forced by this refactor
2017-11-22 02:17:38 -06:00
0ff13ce876 executor: simplify logic (#5185)
* : simplify
2017-11-22 00:55:56 -06:00
16003f0d82 executor: fix missing index update when automatic updating for timestamp 5172 (#5176) 2017-11-21 19:04:54 +08:00
c459da6887 *: refactor executor.checkHandleExists to tables.CheckHandleExists to reuse code (#5157) 2017-11-20 16:50:22 +08:00
14ed94132c executor: fix issue #5132, update handle id with some other unique keys report Duplicate keys. (#5138) 2017-11-20 11:06:28 +08:00
e362f1ed56 types: add deepcopy for update operation (#5098) 2017-11-15 14:46:24 +08:00
cd5c665c8c executor: use baseExecutor for all Executors (#5087)
Makes it easy to add new method on Executor interface.
2017-11-13 21:06:31 +08:00
1aa2a69f92 expression: remove type assertion on types.DatumRow. (#5005) 2017-11-07 14:17:53 +08:00
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -05:00
ad1c532ea5 *: remove unused package and functions (#5003)
* *: remove unused package and functions
2017-11-04 03:36:25 -05:00
ed7f68ca9b *: Add Row interface (#4859) 2017-10-23 11:36:28 +08:00
16eb0ae33b executor: fix bug when auto_increment meets unsigned. (#4824) 2017-10-19 15:31:16 +08:00
f2f473d02e executor: little improvement for multi-delete. (#4742) 2017-10-11 01:59:54 -05:00
eb8df3519a *: prepare to enforce errcheck, part1 (#4670) 2017-09-30 16:23:37 +08:00
a6756a4eee *: make insert with calculated value behave the same as MySQL. (#4603) 2017-09-27 19:59:31 +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
a60bbd9560 expression: refactor "helper.go" (#4593) 2017-09-22 18:54:04 +08:00
fc8b2ee47c fix #4514 (#4517) 2017-09-14 15:31:20 +08:00
88e1666ac6 *: change the log package to logrus (#4452) 2017-09-08 00:45:07 -05:00
ae30c4dcbc support "UPDATE IGNORE", update conflicts generate warning (#4397) 2017-09-04 11:13:18 +08:00
a68d3ad1ee executor: "INSERT IGNORE" generate warnings for duplicate-key error (#4381) 2017-08-31 14:29:28 +08:00