Commit Graph

8026 Commits

Author SHA1 Message Date
8058fd644b util/kvencoder: use reference count to keep single domain instance (#7094)
BootstrapSession should not be called many times and we should keep
just a single domain instance
2018-07-19 11:03:26 +08:00
8c4e733ff3 executor: support 'admin check table' statement for table partition (#7087) 2018-07-19 00:08:32 +08:00
0f461da6c4 fix tidb_http_api.md (#7088) 2018-07-18 23:30:46 +08:00
4f16bdd618 executor: remove childrenResult from baseExecutor (#7076) 2018-07-18 21:18:48 +08:00
5697826e56 docs: add proposal template (#7090) 2018-07-18 19:46:47 +08:00
50193eb975 executor: speed up replace into statement (#7027) 2018-07-18 16:33:59 +08:00
edcc0129b1 session: fix out of memory in the batch operations (#7086) 2018-07-18 15:06:51 +08:00
6dcaecaf79 Add advertise-address to config (#7078) 2018-07-18 10:46:12 +08:00
6b13c4309c executor: support firstrow under new aggregation evaluation framework (#7057) 2018-07-18 09:37:09 +08:00
b29d52ba9c executor: support group_concat under new aggregation evaluation framework (#7032) 2018-07-17 20:22:13 +08:00
533c7777b9 tablecodec: make decode much more faster (#7071) 2018-07-17 20:09:34 +08:00
329c12c6a2 vendor:update vendor for tracing (#7067) 2018-07-17 18:42:45 +08:00
00dd2aaef0 types: remove unused datum_eval method and testcase. (#7070) 2018-07-17 17:33:58 +08:00
1bf3f3d407 ranger: refine explain format, again (#7041) 2018-07-17 16:47:44 +08:00
9cf670a324 *: cut off duration.fsp in chunk (#7043) 2018-07-17 15:36:27 +08:00
44e34bd304 *: index refactor for table partition (#7062) 2018-07-17 14:01:50 +08:00
43f0c1ee70 ddl: add slow operations log to add indices, make trouble shooting easier. (#7060) 2018-07-17 09:42:58 +08:00
9c9ddf391f executor: support the remained types for max/min (#7056)
support String/ Time/ Duration/ JSON for max/min
2018-07-17 00:15:45 +08:00
abe8fd9728 ddl: fix create partition table panic (#7059)
## What have you changed? (mandatory)
Execute below SQL will panic
```SQL
create TABLE t1 (col1 int) partition by range(case when col1>0 then 10 else 20 end) (partition p0 values less than (2), partition p1 values less than (6));
```
TODO:
This PR just fix the panic, This SQL should return err:` ERROR 1564 (HY000): This partition function is not allowed`, issue[#7058](https://github.com/pingcap/tidb/issues/7058)

## What is the type of the changes? (mandatory)
Bug fix

## How has this PR been tested? (mandatory)

Unit test

## Does this PR affect documentation (docs/docs-cn) update? (mandatory)

No

## Does this PR affect tidb-ansible update? (mandatory)

No

## Does this PR need to be added to the release notes? (mandatory)

## Refer to a related PR or issue link (optional)

## Benchmark result if necessary (optional)

## Add a few positive/negative examples (optional)
2018-07-16 20:21:31 +08:00
7c18d24933 executor, store: fixed daylight saving time issue (#6823)
Thank you for working on TiDB! Please read TiDB's [CONTRIBUTING](https://github.com/pingcap/tidb/blob/master/CONTRIBUTING.md) document **BEFORE** filing this PR.

## What have you changed? (mandatory)

During coprocessor dag task,  it first uses timezone `name`, if non-empty, to get legitimate timezone variable. To achieve this, we need to push down such data into tikv which leads to change the logic of building pushdown request. The logic I mentioned mainly resides in `executor` package. 

I change `timeZoneOffset` to `zone` and add second return parameter `name string`.  The intentioned of doing this to adopt the convention of `time` package. 

For the same purpose, I change `GetTimeZone` to `Location`. As you can see, in `time` package, timezone was bind to `Location`. 


## What are the type of the changes (mandatory)?
- Bug fix (non-breaking change which fixes an issue)


## How has this PR been tested (mandatory)?
unit-test
integration-test will be added shortly
2018-07-16 18:15:19 +08:00
b729a60e01 store/tikv: handle the error of "mismatch cluster id" (#7053)
* store: handle the error of "mismatch cluster id"
2018-07-16 16:55:09 +08:00
b1bc4209ca distsql: move SelectResult to file "select_result.go" (#7054) 2018-07-16 15:21:14 +08:00
8cb45e1ff1 stats: rollback when transaction failed (#7026) 2018-07-16 15:05:16 +08:00
e96cda003e plan: move StatsInfo from PhysicalPlan to Plan (#7049) 2018-07-16 09:26:27 +08:00
2945ddd899 vendor: update tipb (#7055) 2018-07-15 21:34:21 +08:00
419e5cfb6c infoschema: Support for showing "AUTO_INCREMENT" in "information_schema.tables" (#7037) 2018-07-14 15:04:48 +08:00
c1b4490365 plan: remove DatsSource.statsAfterSelect. (#7051) 2018-07-13 21:45:19 +08:00
fced72f653 chunk: support encode/decode a Chunk (#7006) 2018-07-13 20:34:19 +08:00
63c4562c27 *: remove non-prepared plan cache (#7040)
* *: remove non-prepared plan cache

non-prepared plan cache is not usable if we can only do full string match.
And further development doesn't worth the effort.
2018-07-13 18:15:05 +08:00
34d8fd8d8d plan, statistics: extract histColl struct (#6860) 2018-07-13 14:42:07 +08:00
cf8a4129a5 tniy cleanup (#7039) 2018-07-12 21:44:54 +08:00
4a7869e807 aggfuncs: implement Count with new aggregation framework (#7009) 2018-07-12 17:11:33 +08:00
7375633948 executor: support bit_and/bit_xor func in new agg evaluation framework (#7004) 2018-07-12 16:11:44 +08:00
0ef52acf82 executor: support MAX/MIN in new evaluation framework partially (#6971) 2018-07-12 15:01:16 +08:00
461663652d *: support 'admin show ddl jobs <number>' grammar (#7028) 2018-07-12 14:49:14 +08:00
5f7fc80389 expression, types: fix decimal minus/round/multiple result (#7001) 2018-07-12 00:02:19 +08:00
cc722546ef ddl:support alter table drop partition (#6460)
support alter table drop partition
2018-07-11 18:26:19 +08:00
7de2b6a042 aggfuncs: implement avg(distinct) functions (#7015)
* aggfuncs: implement avg(distinct) functions
2018-07-11 15:54:13 +08:00
500207c3ce refine pull request template (#6999) 2018-07-11 15:30:38 +08:00
ab46569a50 executor: refine StreamAggExec when child is empty (#7002) 2018-07-11 14:33:48 +08:00
f9a5686f9b executor: make set system variable log shorter (#7029) 2018-07-11 14:09:22 +08:00
fd3706148f lexer: support more syntaxes regarding 'SET Syntax' (#7020) 2018-07-10 18:20:33 +08:00
20a985d8c1 stats: do not wait for data unchanged when auto analyze (#7022) 2018-07-10 15:52:34 +08:00
4af1d236fe ddl: rename test name and clean up (#7021) 2018-07-10 13:06:15 +08:00
c94414d6c7 test:add control parallel execsql tests (#6615)
* add control parallel execsql tests
2018-07-10 12:51:55 +08:00
26a0338ed5 table: table and partition refactor (#6963)
* let partition and table share the common code
* introduce a new PartitionedTable
2018-07-10 00:32:36 +08:00
5f6e36241c support generation_expression (#7017) 2018-07-09 20:06:27 +08:00
9331a079f5 ddl:create table partition value must be strictly increasing (#6912)
* ddl:create table partition value must be strictly increasing
2018-07-09 18:02:48 +08:00
e28a81813c *: check the schema-validity when the DDL fails (#6797) 2018-07-09 17:35:04 +08:00
eeeb092450 server: fix binary numeric type overflow (#6922) 2018-07-09 16:46:56 +08:00