Commit Graph

1171 Commits

Author SHA1 Message Date
de992eb570 expression: only do a shallow copy when evaluating a "Column" expression (#5542) 2018-01-06 12:24:30 +08:00
bc459c5261 executor: support Chunk for HashAggExec (#5244) 2018-01-06 10:21:52 +08:00
c45111d9f6 stats: use more compact structure for histograms (#5539)
* stats: use more compact structure for histograms

* address comments

* address comments

* refine code

* address comment
2018-01-05 20:43:01 +08:00
8b149c3323 Prealloc / collides with package name (#5560) 2018-01-05 19:15:54 +08:00
73e47e0e30 plan: refine the design of schema (#5541) 2018-01-05 12:54:24 +08:00
c19307c41c util, executor: refactor Chunk.AppendRow to handle virtual row (#5563) 2018-01-05 12:35:21 +08:00
04ef7d7992 *: shard implicit row ID (#5513) 2018-01-04 16:32:41 +08:00
019dbb7c9b executor: support Chunk for StreamAggExec (#5490) 2018-01-03 19:47:18 +08:00
b10a65dca1 plan: covert max/min to topN. (#5516) 2018-01-02 22:30:17 +08:00
36d9b61365 *: AddIndex skip checking unique constraint when TiDB is importing data. (#5535) 2018-01-02 20:08:49 +08:00
93b52805c3 ast, executor: set Fields for SelectStmt in PrepareExec (#5504) 2017-12-27 17:16:49 +08:00
b0921f9d27 executor: implement NextChunk interface for UnionScanExec (#5432) 2017-12-26 20:08:11 +08:00
b543bcc7df executor: joinGenerator use chunk.Iterator (#5500)
So NestedLoopApply can use *chunk.List to generate results and reuse the memory.
2017-12-26 18:47:29 +08:00
140c3d0739 executor: "InsertExec.NextChunk" should use function "getRowsSelectChunk" (#5493) 2017-12-26 18:24:41 +08:00
95a5c8ce5a expresion, executor: correct the type inference of function "sum" and "avg" (#5495) 2017-12-26 18:16:52 +08:00
fa62e9fd01 *: merge ranger.IndexRange and ranger.ColumnRange. (#5485) 2017-12-26 16:08:36 +08:00
ccc10a56a6 executor: support Chunk for NestedLoopApply (#5475) 2017-12-26 13:37:19 +08:00
46fd1eb536 executor: support Chunk for ShowExec (#5456) 2017-12-25 21:29:56 +08:00
a7beb99d75 *: support pushing down stream aggregation on mocktikv (#5444) 2017-12-25 15:40:53 +08:00
cc0c09820d executor, plan: reading from memtable should only take the needed columns (#5481) 2017-12-25 15:15:18 +08:00
48aae7b6ef *: support show auto increment ID (#5470) 2017-12-22 20:16:11 +08:00
7159dd0ef6 executor: support Chunk for TableScanExec (#5443) 2017-12-22 19:52:43 +08:00
232ecbeca0 executor: support Chunk for MergeJoinExec (#5312) 2017-12-22 16:47:22 +08:00
855df184e1 executor: support Chunk for TableDualExec (#5395) 2017-12-22 16:37:21 +08:00
a386528393 executor: merge ApplyExec and NestedLoopJoin into NestedLoopApply. (#5471)
NestedLoopJoin is only used in ApplyJoinExec and ApplyJoinExec only has NestedLoopJoin.
Merge them into one simplifies the logic.
2017-12-22 13:44:43 +08:00
ec1b40d5b3 executor: Close() executors when Open() returns an error to avoid goroutine leak (#5469) 2017-12-22 12:38:07 +08:00
2c6d1cf8fa plan,executor: remove HashSemiJoin (#5467)
HashSemiJoin is only used in Apply, it exists only because NestedLoopJoin doesn't support SemiJoin type.
This PR support SemiJoin type in NestedLoopJoin executor, so HashSemiJoin can be removed.
2017-12-22 12:25:42 +08:00
90401445d2 *: collect and store query feedback (#5438) 2017-12-22 11:33:05 +08:00
c4fb12d60e executor: support Chunk for LoadData (#5465) 2017-12-21 22:44:59 +08:00
c37e104a30 fix issue5462 (#5463) 2017-12-21 18:03:54 +08:00
103f6b37f0 plan, executor: index join enhancement. (#5425) 2017-12-21 16:47:44 +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
3533efbb4a executor: support Chunk for GrantExec (#5459) 2017-12-21 13:14:02 +08:00
6a306e4f27 executor: support Chunk for AnalyzeExec (#5452) 2017-12-21 11:17:20 +08:00
5c882361cd executor: support Chunk for SimpleExec (#5453) 2017-12-21 11:04:16 +08:00
b35e024ace executor: support Chunk for DeallocateExec (#5457)
* executor: support Chunk for DeallocateExec

* fix build
2017-12-21 10:50:44 +08:00
13fc8fcd27 executor: support Chunk for RevokeExec (#5458)
* executor: support Chunk for RevokeExec

* fix build
2017-12-21 10:32:48 +08:00
6608dbdc2f executor: fix a bug of NewIndexLookUpJoin's Next(). (#5455) 2017-12-20 20:57:12 +08:00
f6d0599dea plan, executor: only rebuild range when using prepare cache. (#5442) 2017-12-19 15:49:56 +08:00
163c944397 executor: support Chunk for ShowDDLJobsExec (#5412) 2017-12-19 14:17:19 +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
4d57f422fe executor: support Chunk for ShowDDLExec (#5415) 2017-12-16 22:59:20 +08:00
327ffd8896 executor: support Chunk for CancelDDLJobsExec (#5416) 2017-12-15 21:50:51 +08:00
e9c6cc6154 executor: support Chunk for DDLExec (#5417) 2017-12-15 20:40:58 +08:00
f8c0aaf0c9 parser, expression: support SEPARATOR in group_concat aggregate function (#5420) 2017-12-15 16:36:13 +08:00
e811561336 fix issue 5384 (#5414) 2017-12-15 15:39:24 +08:00
82b52f53bb executor: support Chunk for PrepareExec (#5408) 2017-12-15 10:15:34 +08:00
df50524c03 executor: support Chunk for ExistsExec (#5396) 2017-12-15 00:24:38 +08:00
f90908dc7a executor: support Chunk for CheckTableExec (#5407) 2017-12-15 00:14:36 +08:00