333ead673f
ddl: fix admin check bug ( #7359 )
2018-08-21 15:34:17 +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
6178cfd225
*: fixed some typo. ( #7277 )
2018-08-05 13:50:51 +08:00
e5f26cdeaf
types: fix a bug in decimal multiplication ( #7208 )
2018-07-31 22:15:27 +08:00
4ae23a91b3
tablecodec: optimize DecodeRowKey ( #7149 )
2018-07-25 15:59:35 +08:00
fc0ad93356
avoid call errors.Trace when error is nil ( #7120 )
2018-07-23 10:07:57 +08:00
533c7777b9
tablecodec: make decode much more faster ( #7071 )
2018-07-17 20:09:34 +08:00
a4715d5d75
*: unflatten datum in checkIndexAndRecord, to fix admin check table false alarm ( #6625 )
2018-05-24 15:56:02 +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
9ca8689582
types: handle truncate error in BinaryLiteral.ToInt ( #6163 )
...
Truncate error make be treated as warning, we should handle it in `BinaryLiteral.ToInt`.
And compare BinaryLiteral directly instead of converting to uint64 because that the compare function doesn't have statement context.
2018-03-28 14:44:53 +08:00
8fa4980ae0
server, tablecodec: show region key's record id or index values. ( #6030 )
2018-03-20 16:01:46 +08:00
6a826fd0aa
*: collect query feedback ( #5909 )
2018-03-12 15:37:09 +08:00
4136b81c23
*: merge IntColumnRange with NewRange. ( #5591 )
2018-01-10 15:50:58 +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
6b3ac08b7d
config: enable table split. ( #5379 )
2017-12-12 01:11:30 -06: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
ad1c532ea5
*: remove unused package and functions ( #5003 )
...
* *: remove unused package and functions
2017-11-04 03:36:25 -05:00
7d2804e43c
*: check sc.IgnoreZeroInDate when parsing string or number to date/datetime/timestamp ( #4732 )
2017-10-10 23:38:53 -05:00
3e1d036336
*: log the caller of "terror.Log()" ( #4729 )
2017-10-10 11:26:43 +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
c2691114b4
*: check errors part 2 ( #4704 )
2017-10-09 12:46:45 +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
bc84be8df2
*: split separated region for newly created table. ( #4592 )
2017-09-25 15:59:22 +08:00
a764561dac
*: Speed up the add index operation ( #4579 )
2017-09-22 18:24:03 +08:00
fc209cb1df
*: rewrite hex and bit literals ( #4415 )
2017-09-07 16:28:24 +08:00
2750de80bc
*: tiny clean. ( #4222 )
2017-08-17 19:38:37 +08:00
5308024670
server/region_handler: txn debug tool for tikv ( #3787 )
2017-07-28 10:31:49 +08:00
a0dfa040ef
table,tablecodec,util/types: make it possible to read empty enum value ( #3664 )
2017-07-12 16:42:28 +08:00
379914a5af
*: fix timestamp column data and index inconsistent involving timezone ( #3497 )
2017-06-20 15:22:50 +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
0e76e66e03
store/tikv: log big transaction. ( #2525 )
2017-01-22 11:59:31 +08:00
43102df978
util/time: ToPackedUint would return error for invalid timestamp ( #2190 )
...
month=0 or day=0 is invalid in timestamp such as 2016-00-00 00:00:00
so ToPackedUint should return error, for those cases.
2016-12-12 18:50:16 +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
9cca7b0b02
types: move Bit, Enum, Set, Hex to types package ( #2085 )
...
Consistent with Time and MyDecimal.
2016-11-24 12:28:55 +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
1fca94703b
mock-tikv: update to reflect the change of tikv ( #1712 )
...
Remove use of tipb.Row
2016-09-20 15:15:14 +08:00
232605aa0e
Avoid using tipb.KeyRange ( #1685 )
...
Do not use tipb.KeyRange.
Use EncodeRowKeyWithHandle to generate endKey.
Avoid decode values when only need handle.
2016-09-05 14:53:46 +08:00
558ba06368
decode with value size ( #1641 )
...
Add size parameter for Decode to reduce slice growth
BenchmarkDecodeWithSize-8 300000 6153 ns/op
BenchmarkDecodeWithOutSize-8 200000 11934 ns/op
2016-08-26 10:44:03 +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
1d5fdbfaf9
*: improve time codec. ( #1551 )
2016-08-05 14:23:38 +08:00
d639c0aa54
support single index read. ( #1538 )
2016-08-02 16:13:50 +08:00