f283a65f6b
vendor: update kvproto for coprocessor streaming API ( #5214 )
2017-11-25 11:00:08 +08:00
af4e73c43a
tidb: always rebuild plan for retry. ( #5218 )
...
Fixes a bug that results in index and record inconsistency.
We build UnionScan based on if transaction is dirty, but this is a runtime property, may change during retry.
To simplify the logic and avoid potential bug, always rebuild the plan for retrying statements.
2017-11-25 09:50:32 +08:00
52e7f1a91c
plan_test: make test stable ( #5208 )
2017-11-24 11:19:41 +08:00
70ae742524
tidb: update statement history in retry() ( #5202 )
...
Fix a bug in this order:
1. transaction commit meet schema change
2. retry and meet retryable error
3. retry again and success
It would insert stale data, because statement history is not updated,
we may using the wrong schema.
2017-11-23 20:36:01 -06:00
9ac1c08bf8
ast, plan, expression: support builtin aggregation function 'bit_and' ( #5147 )
2017-11-24 09:58:41 +08:00
7e480bd90e
ast, parser: support create view syntax ( #5197 )
2017-11-23 22:53:50 +08:00
90971a8cbf
store/tikv: fix data race caused by race fixing. ( #5204 )
2017-11-23 19:40:36 +08:00
69352a0a29
types: fix parse duration when fsp round overflow 60 seconds ( #5199 )
2017-11-23 19:23:22 +08:00
191de50646
chunk: make chunk.Row iteratable ( #5196 )
2017-11-23 12:45:09 +08:00
81012db983
ranger: remove useless field and simplify some logic. ( #5101 )
2017-11-23 12:40:07 +08:00
7b2b3652a6
domain: load stats table asynchronously ( #5188 )
2017-11-23 00:09:52 +08:00
ced6efc7f4
expression: support vectorized execution of expressions ( #5184 )
2017-11-22 23:41:36 +08:00
ee7b0853bb
table: tiny clean up and add logs ( #5186 )
...
* table: tiny clean up and add logs
2017-11-22 20:12:17 +08:00
9e524cb0bf
throw out error if index hint not exist ( #4951 )
2017-11-22 18:26:35 +08: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
9921f41491
types: add overflow truncate when convert str to float ( #5130 )
2017-11-22 15:52:23 +08:00
8892bdf373
types: fix invalid time cast bug ( #4338 )
2017-11-22 15:24:56 +08:00
0ff13ce876
executor: simplify logic ( #5185 )
...
* : simplify
2017-11-22 00:55:56 -06:00
a05c8b02d9
types: Make vet happy ( #5187 )
2017-11-22 14:42:26 +08:00
aba165718c
ddl: limit the length of the index name ( #5161 )
2017-11-22 14:08:57 +08:00
f828016e9f
*: move sessionctx/domainctx.go to domain package ( #5168 )
2017-11-22 13:41:58 +08:00
55b8f9f1ee
executor, expression: support Chunk in ProjectionExec ( #5178 )
2017-11-22 13:34:03 +08:00
1b70a6d524
store/tikv: fix region cache data race. ( #5171 )
2017-11-21 22:54:16 -06:00
9c3600212a
domain: Clean up the goroutine after closing a domain ( #5163 )
2017-11-22 10:57:19 +08:00
4d0908736a
*: preallocation for slice ( #5180 )
...
pre-allocate slice
2017-11-21 20:51:25 -06:00
8b15cb52b7
*: move StatementContext to its own package. ( #5177 )
2017-11-22 00:11:14 +08:00
16003f0d82
executor: fix missing index update when automatic updating for timestamp 5172 ( #5176 )
2017-11-21 19:04:54 +08:00
995a5872c8
plan: tiny clean ( #5169 )
2017-11-21 17:54:43 +08:00
e7ac0066ca
plan: clean code. ( #5175 )
2017-11-21 17:37:51 +08:00
3f212a6133
expression: fix from_unixtime(val>MaxInt32) ( #5170 )
2017-11-21 16:53:43 +08:00
03a80acdc1
vendor: update tipb ( #5167 )
2017-11-21 16:06:45 +08:00
cd914b6611
plan, executor: remove NeedHandle field ( #5144 )
2017-11-21 15:20:24 +08:00
dd2812fa55
mysql, expression: support sql_mode 'PAD_CHAR_TO_FULL_LENGTH' ( #5065 )
2017-11-21 13:22:29 +08:00
e5f8ae074a
statistics: avoid update delta when modified count is 0. ( #5162 )
2017-11-21 10:22:32 +08:00
a32b8dbcf6
*: use Chunk for TableReader. ( #5142 )
2017-11-21 10:08:50 +08:00
726c3a0fa9
executor: tiny refine for join ( #5099 )
2017-11-20 23:05:57 +08:00
fec39cc888
server: support mvcc get hex key. ( #5151 )
...
Use `http://tidb-host:tidb-port/mvcc/hex/{hexKey} ` to get the MVCC info of the full hex key.
2017-11-20 19:45:42 +08:00
b9ca00ad5f
plan, executor: deep clone TopN when push it down through Join ( #5158 )
2017-11-20 17:24:12 +08:00
c459da6887
*: refactor executor.checkHandleExists to tables.CheckHandleExists to reuse code ( #5157 )
2017-11-20 16:50:22 +08:00
4a75a103e4
executor: some clean up. ( #5156 )
2017-11-20 15:41:12 +08:00
a220cff85e
ddl: Deal with discrete handles ( #5102 )
...
* ddl: deal with discrete handles
2017-11-19 21:30:06 -06: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
a2ab04e42f
domain: Close DDL when creating a domain failed ( #5128 )
2017-11-19 20:41:12 -06:00
628751439a
privileges: grant privilege identified by password should be hash string ( #5129 )
2017-11-20 10:05:46 +08:00
ca5d33ddac
ranger: check MaxInt64 and MinInt64 to avoid overflow. ( #5136 )
...
* ranger: check MaxInt64 and MinInt64 to avoid overflow.
2017-11-18 00:10:14 -06:00
fccc540f3b
plan: remove unionscan schema. ( #5119 )
2017-11-18 09:41:39 +08:00
393da08e0f
fix prefix index ( #5139 )
2017-11-18 00:52:48 +08:00
2dc5f7f3a0
Remove noused return ( #5141 )
2017-11-17 03:19:48 -06:00
03023ca443
stats: fix estimation in between row count ( #5135 )
2017-11-17 16:48:34 +08:00
ee2168ed62
Remove ineffectual assignment to joinedRow ( #5133 )
2017-11-17 16:06:43 +08:00