Commit Graph

8026 Commits

Author SHA1 Message Date
18449d777a *: merge statement buffer when BatchGetValues (#9374) 2019-02-22 11:06:58 +08:00
38a453d29c expression: should not pass nil pointer to HashCode() function (#9324) 2019-02-21 21:18:03 +08:00
67b5eef13c Update conn_ip_example_test.go (#9409)
Example_LadRunShutdownPlugin has malformed example suffix
2019-02-21 19:18:39 +08:00
8357d0a234 ddl: add err check in table.go (#9385)
fix the errcheck
2019-02-21 16:58:47 +08:00
e6f4f6c7f9 server, sessionctx: workaround var initialization (#9383) 2019-02-21 16:19:30 +08:00
042e4100b9 executor: support row framed window functions (#9358) 2019-02-21 15:30:25 +08:00
a5188a8370 ddl: return warnings when the alter algorithm is COPY, return errors when the algorithm is wrong (#9367) 2019-02-21 14:59:50 +08:00
aabd330d1e *: support "show create user" (#9240) 2019-02-21 13:58:19 +08:00
7a240818d1 executor: control Chunk size for TopN&Sort (#9364) 2019-02-21 13:00:41 +08:00
46c1cf1c3b tidb-server:Fix misspell (#9380) 2019-02-21 11:39:16 +08:00
f46c558a60 ddl,table/tables: handle partition by range column when len(column)=1 (#9082)
create table ... 'partition by range column', when len(column)=1,
the case can be transformed to 'partiton by range'
2019-02-20 17:02:14 +08:00
8f3c74c1c5 *: support variable log_bin (#9343) 2019-02-20 16:28:15 +08:00
e499da9bb4 sessionctx: show correct TiDB port instead of 3306 (#9365) 2019-02-20 15:28:26 +08:00
77fb909495 update Dockerfile to build master (#9322)
* update Dockerfile to build master

Update go version to 1.11.5

* Dockerfile: fix use Alpine linux

tidb-server was not working in the scrach image.
2019-02-20 12:43:41 +08:00
d3325c8a70 planner: refactor 'Can't find column' panic to error (#9326) 2019-02-20 11:29:56 +08:00
dec3ab6358 ddl: support alter algorithm INPLACE/INSTANT (#8811) 2019-02-20 10:22:26 +08:00
f7dc9157e2 Push down condition check to TiKV for prewrite request (#9127) 2019-02-19 19:45:41 +08:00
231ce8f75a planner: change the cost formula for join reorder (#9303) 2019-02-19 18:46:06 +08:00
789f7006ac Control the number of rows in chunks returned by LimitExec (#9354) 2019-02-19 18:21:55 +08:00
45ee205896 ddl :fix cancel add/drop partitioned table ddl job (#8938) 2019-02-19 17:22:41 +08:00
40fa006cac *: collect coprocessor runtime stats for explain analyze (#9057) 2019-02-19 16:22:00 +08:00
5bf9ad965d ddl: check unique key constraint for 'alter table add index' on partitioned table (#9323) 2019-02-19 14:12:44 +08:00
0ffb2f612c expression: refactor constant folding for IF&IFNULL (#9094) 2019-02-19 11:41:59 +08:00
bc0e70dc5c planner/core: implement skyline pruning (#9337) 2019-02-19 11:19:30 +08:00
b845f2a4da executor, planner: support show create view (#9309) 2019-02-19 10:18:57 +08:00
ed7bb00417 planner, expression: support builtin function NAME_CONST (#9261) 2019-02-19 10:02:46 +08:00
7c0a9a7c57 add integration tests for access path selection (#9212) 2019-02-18 19:08:24 +08:00
a333cfb536 config: show tidb_force_priority should be same as config (#9342) 2019-02-18 17:33:06 +08:00
cc085693f1 executor: support window function row number (#9098) 2019-02-18 17:14:37 +08:00
a8664ef00b table: add a http api to control whether tidb check inserting 4 bytes in utf8 charset column (#9024) 2019-02-18 16:57:03 +08:00
0e6ce4612f remove the document of the http disk usage api (#9329) 2019-02-18 15:50:29 +08:00
94d21c57aa * fix timestamp default value bug in multiple time zones. (#9115) 2019-02-18 15:35:27 +08:00
69472bd1a6 value_expr: add charset value for string expr (#9302) 2019-02-18 14:58:08 +08:00
84d1513b09 plugin: support flush tidb plugin {name} in tidb-server (#9320) 2019-02-18 13:48:43 +08:00
3e78ebcb4a add current DB name to general log (#9332) 2019-02-18 13:06:40 +08:00
33a961decf ddl: fix canceling model.ActionRebaseAutoID and model.ActionShardRowID ddl jobs (#9226) 2019-02-18 11:34:13 +08:00
c468f02bb0 planner: remove constant sort items after substitution (#9333) 2019-02-18 10:57:35 +08:00
d09e0e36b8 planner, privileges: add CreateViewPriv Support (#9153) 2019-02-15 17:11:40 +08:00
6136ab14cf *: start replacing logger with zap logger (#9279) 2019-02-15 16:43:47 +08:00
a9c7c70596 planner, executor: inject proj below TopN and Sort if byItem contains scalarFunc (#9197) 2019-02-15 15:34:30 +08:00
3d4ad1fb80 executor: make the results of show create table more consistent with MySQL (#9229)
* Fix #9211: make  more consistent with MySQL
2019-02-15 11:26:11 +08:00
f73c4e2d58 table: fix error code different from mysql "error 1604 : locate partition failed" (#9294) 2019-02-14 16:53:16 +08:00
d96ca96941 executor:adjust 'show create table' for mysql compatibility (#9113)
* executor: adjust 'show create table'

show create table should not print the charset of the column
if it is the same with table charset( same with MySQL)

* update:change the test

* update: add test to improve CodeCov

* style: update the variable

* fix test

* Wait for change parser

* just need to test

* change go.mod

* fix invalid pointer access

* Revert "update:change the test"

This reverts commit 64b381b2e95f151a9756d67ba52b60f694573cf9.

* Revert "fix test"

This reverts commit 98e00954064c9f5a6aa4ae1d4fb529e27cfabf4e.

* Revert "update: add test to improve CodeCov"

This reverts commit a32d6e992ca239e893f0615cea988838f3952dd7.

* passed test(need change test data)

*  add judge when show create table

*  fix logic wrong

*  add test

* change variable name

* revert something because complex

* update go.mod

*  update go.mod
2019-02-14 15:49:38 +08:00
de56ea67e4 store/tikv/region_cache: Backoff when region epoch is ahead of TiKV (#9181)
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
2019-02-14 15:02:30 +08:00
632a8c4c82 executor, util: add Benchmarks for HashAggExec and StreamAggExec (#8998) 2019-02-14 13:29:35 +08:00
6a984412c7 ddl: use original column name in duplicate column error (#9291) 2019-02-14 13:15:15 +08:00
65066c8d1e Control the number of rows in chunks returned by SelectResult (#9293) 2019-02-14 11:48:01 +08:00
b9c5f55cc0 store/tikv: make the batch strategy more smart (#9169) 2019-02-13 20:24:27 +08:00
0081e17b02 expression, planner: support builtin function benchmark (#9252) 2019-02-13 19:53:28 +08:00
357f9d7363 metrics: add db QPS metric (#9151) 2019-02-13 19:17:44 +08:00