Commit Graph

185 Commits

Author SHA1 Message Date
62450b9024 Use etcd to speed up DDL process
Add the mock owner-manager and schema-syncer and enable using etcd to speed up DDL process by default.
2017-06-04 10:00:41 +08:00
6962814a29 add json_type function and compare json with primitive types. (#3307) 2017-05-24 15:21:40 +08:00
26ee3cc2e5 executor: fix data race. (#3284) 2017-05-17 19:27:20 +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
e7257d0e9d plan, executor: open the new plan switch for all test. (#3274) 2017-05-16 20:40:12 +08:00
c5e864539f executor: fix some bugs about new plan. (#3231) 2017-05-10 16:32:00 +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
cc3676abc0 *: fix aggregation bug in new plan. (#3210) 2017-05-05 13:37:06 +08:00
d128a10fad plan, executor: implement index look up executor. (#3204)
index look up executor implements index double reading. we reuse the concurrency algorithm in old index executor.
2017-05-04 21:33:36 +08:00
67c62b3b39 *: make string in select result convert to bit correctly. (#3188) 2017-05-03 14:14:09 +08:00
dbcab85ba6 *: support index reader executor. (#3175) 2017-05-03 10:58:55 +08:00
20be357e86 expression: fix buildin function found_rows() (#3134)
fix issue #3131.
2017-05-02 11:40:10 +08:00
858d76bbe3 executor: fixed comments warning. (#3187) 2017-05-01 19:19:32 +08:00
b4f20e6f0b util/testkit: refine testkit (#3177) 2017-04-29 23:20:49 +08:00
a9a33b0209 fix typo (#3179) 2017-04-29 00:24:27 +08:00
ea310f614c executor, store: let old plan use old store. (#3160) 2017-04-27 20:50:10 +08:00
350c79382a *: support new table reader executor. (#3133) 2017-04-27 13:27:26 +08:00
7018898f30 Revert "*: Remove useless code and use the DAG mode in tests (#3069)" (#3142)
This reverts commit d8c52e8ac9325df750c2f985fe5f743e840d3938.
2017-04-25 23:20:09 +08:00
0de1339979 store/tikv: export mocktikv as a storage engine. (#3107)
So DAG mocktikv can run integration tests.
2017-04-21 14:11:38 +08:00
59154905aa *: rename table-driven tests name. (#3081) 2017-04-19 10:02:57 +08:00
d8c52e8ac9 *: Remove useless code and use the DAG mode in tests (#3069) 2017-04-17 22:14:16 +08:00
70df9c0464 *: support topN with DAG (#3008) 2017-04-07 18:05:55 +08:00
5eb8a819b7 *: Support limit with DAG (#3004) 2017-04-07 17:13:45 +08:00
b799b182e8 store: Support table scan, index scan and selection with DAG. (#2930) 2017-03-28 22:36:21 +08:00
99b7606624 executor: Make admin test stable (#2940) 2017-03-28 14:50:30 +08:00
0e172acd8e Add a controller in Selection to control the conditions of the below scan plan. (#2834)
Prepare for IndexLookupJoin.
2017-03-28 09:58:49 +08:00
ed56d82fa7 sessionctx/variable: refine TiDB specific system variables. (#2915) 2017-03-24 12:57:33 +08:00
51fce6fd51 plan: fix bug about column prunning. (#2796) 2017-03-09 15:40:16 +08:00
624e7edebe executor: fix bug about topn pushing down. (#2693) 2017-02-21 14:54:56 +08:00
6859d121b9 txn:improvement for point get by unique key or pk (#2631) 2017-02-20 22:39:36 +08:00
43c73b7caa util/types: fix bug when truncating string values. (#2686) 2017-02-20 20:35:47 +08:00
846b267b46 util/types: ignore string truncate error. (#2685) 2017-02-20 19:51:08 +08:00
1972558dc9 *: change default collation to utf8_bin (#2617)
Currently we doesn't support case insensitive index, our duplication check is always case sensitive.

We should not use case insensitive collation as default collation.
2017-02-10 11:45:35 +08:00
59e8ccf0a5 expression: workaround for wrong timediff function input (#2611) 2017-02-08 20:57:27 +08:00
8bafc3d515 tidb: accelerate unit test (#2590)
Avoid BootstrapSession everytime, just do it once in testSessionSuite.SetUpSuite
2017-02-06 15:11:38 +08:00
7965666bce executor: ajust some code. (#2574) 2017-01-30 09:45:50 +08:00
32173e988f plan: fix a bug of exists sub query (#2549) 2017-01-25 14:41:53 +08:00
873403ab70 plan: refine the range calculating. (#2534) 2017-01-24 12:49:12 +08:00
150574bacf plan: remove aggregation grouped by unique key. (#2424) 2017-01-23 19:08:48 +08:00
9d536e34a7 *: run a bootstrap session before store is ready (fix race) (#2491) 2017-01-22 11:39:25 +08:00
f145a32063 *: refactor apply plan and executor. (#2411) 2017-01-22 11:06:17 +08:00
12ae004603 executor: fix join leak (#2505)
In HashJoin Executor When Close is called after fetched 1000 rows, the result channel is full,
Close is blocked forever.
2017-01-18 23:31:41 +08:00
999517c4f1 Revert "*: run a bootstrap session before store is ready" (#2490) 2017-01-17 15:14:24 +08:00
e1ecc1059e *: run a bootstrap session before store is ready (#2481) 2017-01-17 14:46:35 +08:00
ba8b6a9c26 fix bug of union type converting (#2471) 2017-01-16 12:09:27 +08:00
1b72b11ffa util/types: fix truncate float (#2405) 2017-01-06 17:14:04 +08:00
696bea9f37 *: Support batch load data (#2394) 2017-01-05 16:15:00 +08:00
36e9570051 *: concurrently begin a transaction and compile (#2393) 2017-01-05 15:00:43 +08:00
e38c67e086 executor: implements nested loop join. (#2365) 2017-01-03 19:53:03 +08:00
31d58b69ed executor: consider uint = int in join condition. (#2355) 2016-12-30 19:00:49 +08:00