8b149c3323
Prealloc / collides with package name ( #5560 )
2018-01-05 19:15:54 +08:00
970e5b5684
*: replace JSON with BinaryJSON ( #5460 )
2017-12-21 15:20:17 +08:00
5f468489ab
util: add kvencoder package, make transfer sql to key-values be possible. ( #5236 )
2017-11-29 18:01:31 +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
a32b8dbcf6
*: use Chunk for TableReader. ( #5142 )
2017-11-21 10:08:50 +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
66c19def93
util/codec: support decode data to chunk. ( #5066 )
2017-11-13 18:34:22 +08:00
62433663e5
util/types: change types path ( #5007 )
...
* util/types: change types path
2017-11-04 10:37:14 -05:00
67bddaa1ee
codec: fix a bug in json decode. ( #4949 )
...
Previously after decode a JSON from row, we didn't
advance the index in the bytes. This PR fix this.
2017-10-30 18:12:40 +08:00
51a6e6fc48
*: fix ineffectual assignments #4713 ( #4746 )
2017-10-11 21:26:03 -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
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
fc209cb1df
*: rewrite hex and bit literals ( #4415 )
2017-09-07 16:28:24 +08:00
f3134bede9
codec: use reference instead of value copy of "[]types.Datum" ( #4408 )
2017-09-04 11:30:47 +08:00
c844ad7cea
*: fix two error shade bug. ( #3910 )
...
* fix a json decode bug.
2017-07-27 02:40:21 -05:00
fc9d5eb215
executor, codec: fix bug when join 2 decimal keys. ( #3797 )
2017-07-19 11:42:17 +08:00
466e48c3de
executor, util: fix bug when the join's keys have different types. ( #3784 )
2017-07-18 16:28:08 +08:00
d925b59702
codec: let it panic when we try to encode a unspecified decimal. ( #3695 )
2017-07-14 23:29:05 +08:00
b9088c26b7
codec: simplify json codec. ( #3524 )
2017-06-23 14:04:09 +08:00
379914a5af
*: fix timestamp column data and index inconsistent involving timezone ( #3497 )
2017-06-20 15:22:50 +08:00
1e4bf4775c
document store: add JSON type and codec. ( #3248 )
...
Document store: add JSON type and codec.
The JSON binary representation is same with MySQL 5.7. we prefer
this not bson because 1) bson only supports JSON compound types
but not JSON primitive types, and 2) this representation is better
than bson on random access.
This PR now can support these statements:
```
CREATE TABLE t (a json_field);
INSERT INTO t (a) values ('{"a": "b"}');
SELECT * FROM t;
```
JSON codec uses MySQL 5.7 compatible format, which doesn't support use JSON field as key or index. We will limit this in tidb later.
2017-05-17 12:00:34 +08:00
5494a54db4
util: correct comments mistake ( #3121 )
2017-04-25 09:16:50 +08:00
2bac467c0d
with some spelling mistakes ( #2986 )
2017-04-05 10:34:09 +08:00
78f7eab61d
*: refactor distsql and executor. ( #2942 )
2017-03-29 15:20:25 +08:00
4095299e9c
*: add comparable varint encoding. ( #2236 )
2016-12-14 21:26:59 +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
1c6c145f94
*: Set custom verbose flag to true ( #1956 )
...
* *: set custom verbose flag to true
* *: update .gitignore
2016-11-05 18:00:13 +08:00
9923f8cfa9
Reduce slice growth ( #1663 )
2016-08-30 19:52:41 +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
212ba73b4a
util/codec: encode int64 to varint if not comparable ( #1448 )
2016-07-25 12:52:06 +08:00
61ada26dc4
Support sum in xapi. ( #1409 )
2016-07-08 19:59:13 +08:00
cad94acb54
Store row data in single kv pair ( #1347 )
2016-06-28 11:15:09 +08:00
458671af7e
util/codec: unify decimal codec with tikv. ( #1268 )
2016-05-30 17:50:23 +08:00
05043bfb0c
*: fix decimal codec bug, see #1265 . ( #1266 )
2016-05-30 10:34:14 +08:00
cf6d1f5f97
*: do not set null column value to save storage space. ( #1236 )
2016-05-17 19:14:28 +08:00
08034540f0
*: Add leak test
...
* *: add leak test and tiny clean up
* *: unify test format and add leak test
Conflicts:
store/localstore/compactor_test.go
mysql/error_test.go
*: add leak test
2016-04-07 20:53:45 +08:00
921f65f259
Merge pull request #1026 from pingcap/busyjay/simplify-number-encode
...
util: Simplify number encoding
2016-03-29 21:18:33 +08:00
1bd25a14d8
store/localstore: add local store xapi support.
2016-03-29 20:33:24 +08:00
b92b1e6c62
simplify number encoding
2016-03-29 19:12:30 +08:00
08510fef0e
util/codec: do not modify data while decoding bytes.
...
Decoding method should not modify the original data.
2016-03-29 12:08:30 +08:00
38f77b979c
utll/codec: fix decimal codec
2016-03-28 19:58:25 +08:00