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
33c2262b9e
*: assign RetType for Constant/Column ( #3201 )
2017-05-05 12:01:01 +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
3f296ed82d
*: add Trigger_priv column to mysql.user ( #3143 )
2017-05-03 13:49:07 +08:00
67815f1a07
plan: copy the physical info to avoid panic. ( #3199 )
2017-05-03 11:27:07 +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
588bf60f0c
*: support analyze index ( #3156 )
2017-05-01 19:42:46 +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
0595143194
*: add Process_priv column to mysql.user ( #2994 )
2017-04-28 22:35:46 +08:00
28be450cc9
plan, executor: refine code. ( #3173 )
2017-04-28 16:43:26 +08:00
c646b59927
*: fix data race in join. ( #3159 )
2017-04-27 23:26:15 +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
c237781cad
plan, executor: make Analyze a Plan ( #3130 )
...
* executor: remove indexExec's depedency on indexPlan
* plan, executor: make Analyze a Plan
* address comment
* address comment
* fix gofmt
2017-04-26 10:36:44 +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
7699d3fb76
*: refine EvalBool function. ( #3139 )
2017-04-25 22:07:17 +08:00
73c9e12f24
infoschema: add more empty tables ( #3127 )
2017-04-24 19:27:25 +08:00
93f4780f40
plan: add variable countReliable to physicalPlanInfo ( #3011 )
2017-04-24 17:07:31 +08:00
594fab2f49
infoschema: add VIEWS and ROUTINES table ( #3108 )
2017-04-22 22:14:57 +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
790cbd615a
executor: initialize index scan concurrency. ( #3097 )
...
Index scan concurrency is not initialized, so the effective concurrency was 1.
For table lookup task, the concurrency should use table scan concurrency instead.
2017-04-20 21:03:04 +08:00
0316046e33
executor: fix race. ( #3096 )
2017-04-20 16:39:22 +08:00
0f2afbf44b
statistics: prepare for analyze part of a table ( #3062 )
...
We need to make somthing like 'analyze index...' work, this is only the first step.
2017-04-20 14:05:51 +08:00
12f07daff2
expression: make group_concat handle character correct ( #2821 ) ( #3083 )
2017-04-19 22:06:03 +08:00
bb71d83456
ddl: check unsupported charset. ( #3086 )
...
We only supports a few charset, when a charset is not supported, we should return error.
Also enforce charset to be lower case.
2017-04-19 20:34:49 +08:00
59154905aa
*: rename table-driven tests name. ( #3081 )
2017-04-19 10:02:57 +08:00
aa9a97a051
*: show create table output utf8_bin collate. ( #3076 )
...
*: show create table output utf8_bin collate.
We only support case sensitive utf8_bin collation right now, but show create table ignored the collation.
So the dumped DDL statement doesn't contains collation option.
When the DDL statement is executed on MySQL, the collation will be changed to utf8_general_ci.
If the string column is defined as unique key, there would be duplicated key error.
This PR enforce utf8 charset and utf8_bin collation when parse a column definition, and enfore table option
`DEFAULT CHARSET=utf8 COLLATE=utf8_bin` in SHOW CREATE TABLE statement.
2017-04-18 19:54:21 +08:00
42dec329fe
session: return correct LastInsertID. ( #3071 )
...
When insert into an auto_increment column with a given value, the last insert id write to client should be the value.
2017-04-18 18:53:24 +08:00
d8c52e8ac9
*: Remove useless code and use the DAG mode in tests ( #3069 )
2017-04-17 22:14:16 +08:00
10e005f1e6
statistics: every histogram use its own version to update. ( #3059 )
...
after we support delta updae in #3053 , we shouldn't load the whole histogram when we find the table version updated. Every histogram has it's own version.
2017-04-17 21:13:18 +08:00
b698bb54c3
*: fix data race when defer cancel() is called ( #3068 )
...
* *: fix data race when defer cancel() is called
defer cancel() was introduced in this PR
https://github.com/pingcap/tidb/pull/3010
2017-04-17 17:17:07 +08:00
3126e5e341
*: online update count in table stats. ( #3053 )
...
When insert and update happens, we will cache the changed info in every session. After a duration(five minutes now) passes, handle will sweep every cache and merge them. Then dump the delta info to TiKV.
2017-04-15 21:20:44 +08:00
97bfafa702
*: Use AggregationFunction instead of evaluate in aggregation ( #3040 )
2017-04-14 19:49:00 +08:00
8a87d775b8
statistics: remove rlock using copy on write. ( #3029 )
...
every time we update stats cache, we copy the whole map. By this way we can avoid rlock.
2017-04-12 10:22:22 +08:00
654c10fd80
*: use etcd for privilege update notification ( #3030 )
2017-04-11 19:47:25 +08:00
a6e0019733
executor: use MVMap for aggregate ( #3028 )
2017-04-11 13:07:40 +08:00
4ce98317ce
*: put the stats map to stats handle to make test more easier. ( #3014 )
2017-04-10 17:01:00 +08:00
e3a0dc68ce
*: use column id to get stats instead of column offset ( #3019 )
...
Now we assume that the order of columns in stats matches the column offsets. It will return wrong stats sometimes.
If we analyze when a table is (c1, c2) and then drop c1, the c2's offset will become 0. But in stats the position of 0 is c1. I have added this case to test.
2017-04-10 16:03:20 +08:00
8cea9b8a42
plan, util: move IndexRange and TableRange to types package. ( #3018 )
...
Those types will be used in statistics later.
2017-04-08 17:18:51 +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
eba4e7138b
privilege: clean up some old code ( #3005 )
2017-04-06 22:43:46 +08:00
79676b15f0
*: Support aggregation with DAG ( #2970 )
2017-04-06 14:56:47 +08:00
fac3eb283b
plan, executor: add logical prefix for agg, join and apply. ( #2985 )
2017-04-05 19:38:35 +08:00
f7cc682eed
*: support Super_priv ( #2990 )
2017-04-05 19:21:07 +08:00