9b824457c1
*: improve column size calculation of statistics ( #11091 )
2019-07-15 13:05:54 +08:00
67583f9dc1
tablecodec: improve package unit test code coverage to 85% ( #10356 )
2019-05-08 15:01:51 +08:00
27a56180bd
*: replace gofail with the new failpoint implementation ( #10184 )
2019-04-22 13:30:14 +08:00
e31e8f1560
*: reduce runtime.growslice by preallocation ( #9946 )
2019-03-31 10:31:06 +08:00
9c087d13ee
*: replace github.com/etcd-io/gofail with the forked one ( #8693 )
...
With the adoption of Go module, GOPATH is not need any more
But github.com/etcd-io/gofail doesn't support packages outside the GOPATH
To overcome the drawback, this commit replace it with our forked one
2018-12-19 11:30:48 +08:00
d3b92e0288
ddl: fix panic when add index of generated column. ( #8620 )
2018-12-11 18:08:18 +08:00
89dda9d9a8
*: move parser to a separate repository ( #8036 )
2018-10-25 11:12:10 +08:00
5baedaa21c
expression, types: fix some corner case when parsing string to datetime ( #7701 )
2018-10-08 10:35:52 +08:00
22519aefc2
*: update import path from coreos/gofail to etcd-io/gofail to fix ci ( #7329 )
2018-08-09 15:48:01 +08:00
e5f26cdeaf
types: fix a bug in decimal multiplication ( #7208 )
2018-07-31 22:15:27 +08:00
533c7777b9
tablecodec: make decode much more faster ( #7071 )
2018-07-17 20:09:34 +08:00
87ce884b2e
*:check max/min timestamp bound with timezone aware ( #6581 )
...
- mytime: max/min configure with UTC tz, convert to local tz during process starting, convert it to session tz before checking bound.
- time: so `check()`/`add()` need force pass `StatementContext` parameter.
- builtin_time: pass `StatementContext` from `b.ctx.sessionVars` into check/add.
- dump: also set timezone for StatementContext with UTC.
- *_test/mock: fix test case, make mock context with stmt TimeZone.
- add testcase for checkTimestamp and mytime convert timezone.
2018-05-24 15:27:38 +08:00
8a2a20e181
store/tikv: more friendly error log for WriteConflict ( #6457 )
2018-05-18 13:47:24 +08:00
8fa4980ae0
server, tablecodec: show region key's record id or index values. ( #6030 )
2018-03-20 16:01:46 +08:00
eddff3429a
*: importing data reduce memory allocations. ( #5549 )
2018-01-07 12:48:07 +08:00
ecbd60c3ff
*: add arguement StatementContext to Encode functions. ( #5566 )
2018-01-06 17:31:08 +08:00
5f468489ab
util: add kvencoder package, make transfer sql to key-values be possible. ( #5236 )
2017-11-29 18:01:31 +08:00
8b15cb52b7
*: move StatementContext to its own package. ( #5177 )
2017-11-22 00:11:14 +08:00
62433663e5
util/types: change types path ( #5007 )
...
* util/types: change types path
2017-11-04 10:37:14 -05:00
7d2804e43c
*: check sc.IgnoreZeroInDate when parsing string or number to date/datetime/timestamp ( #4732 )
2017-10-10 23:38:53 -05: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
913037ebb9
tablecodec,mysql, util: mysql TypeDuration Fsp ( #3499 )
...
Fixed RoundError issue #3471
Bug Cause:
1. when deserialize mysqlDuration, the Fsp is setted with 0 instead of the Fsp from column information.
2. the default decimal for column with TypeDuration is 0.
2017-06-20 11:10:40 +08:00
0d6490efc4
*: interpret timestamp datum based on session's time_zone ( #3167 )
...
1. FromPackedUint don't consider time_zone any more, moved to Unflatten
2. use session's time_zone instead of time.Local
3. add a time.Location parameter to some Encode/Decode functions in tablecodec
2017-05-08 11:58:55 +08:00
1685dcb1e0
tablecodec: correct comments mistake ( #3122 )
2017-04-24 10:08:15 +08:00
61be27d4ac
*: Update the return value type of CutRow and CutIndexKey to [][]byte ( #2978 )
2017-04-01 18:53:52 +08:00
e791b9a3be
http: get region's info ( #2774 )
2017-03-17 12:08:53 +08:00
74a1c9935d
*: add StatementContext argument to functions. ( #2157 )
...
Add StatementContext argument to more functions where it is needed.
2016-12-02 23:28:11 +08:00
b19cc75a94
mysql, types: move MyDecimal and Time from 'mysql' to 'types' package. ( #2082 )
...
So we don't need to handle sql mode in 'mysql' package, avoid potential dependency cycle.
2016-11-24 10:50:31 +08:00
e31b281ee7
*: use new MyDecimal implementation. ( #1611 )
2016-08-22 20:24:39 +08:00
39e4d52bd7
*: support index where and aggregate push down. ( #1567 )
2016-08-15 20:03:52 +08:00
cad94acb54
Store row data in single kv pair ( #1347 )
2016-06-28 11:15:09 +08:00
02aa7874d0
tablecodec: Add EncodeRow and DecodeRow ( #1341 )
...
Add EncodeRow and DecodeRow
2016-06-23 15:39:49 +08:00
a9aad12ba8
*: move tablecodec package out of xapi. ( #1335 )
2016-06-22 13:32:26 +08:00