39a8d0eb7a
executor: support parallel projection ( #6323 )
2018-06-07 22:50:54 +08:00
ce26287a2e
plan: make "TIDB_SMJ" take effect even when no index can be used ( #6454 )
2018-06-07 20:42:36 +08:00
1082b1a0f3
plan: refine the result of EXPLAIN statement ( #6755 )
2018-06-07 20:13:16 +08:00
db4888a697
plan, parser: fix the wrong result of the UNION statement ( #6752 )
...
tidb diff result with mysql when mix use union and union-all fix #6731
- rename `selectStmt.UnionDistinct` to `selectStmt.IsAfterUnionDistinct`
- add explain test
- remove useless `unionStmt.Distinct` and `selectList.Distinct`
- refactor use golang slice, remove dup code
- return WrongNumColumnInSelect error and add test case
2018-06-07 17:08:26 +08:00
f56e130eed
ddl, parser: support 'ALTER TABLE RENAME KEY TO' syntax ( #6475 )
2018-06-07 13:32:17 +08:00
66c41128ca
expression: improve constant folding of UDF if & ifnull ( #6677 )
2018-06-07 11:38:57 +08:00
5efab55a27
expression: Do not wrap a 'CAST As JSON' when input is already a JSON ( #6678 )
2018-06-07 11:10:50 +08:00
a54ab4270c
executor: gather all the error definitions together ( #6772 )
2018-06-07 10:58:03 +08:00
12a62e86b1
*: Fix select lock option for union statement ( #6579 )
...
If for update appears after order by or limit in union, then it is ignored.
If there is no order by or limit, it affects only the near select statement.
This locks both statements.
```
select * from t for update union select * from s for update;
```
This is syntax error:
```
(select * from t) union all (select * from s) for update;
```
2018-06-06 22:17:09 +08:00
ac1be1d191
sessionctx/binloginfo: make TestMaxRecvSize more stable ( #6771 )
...
TestIgnoreError may clean up fail, rename it to TestZIgnoreError so
even it fails, it doesn't not affect TestMaxRecvSize.
2018-06-06 21:04:11 +08:00
96a5109ebb
types: handle NULL datum if we need convert it to string. ( #6761 )
...
* types: handle `NULL` when we need to
2018-06-06 20:15:48 +08:00
fbed209a94
Add max backoff option ( #6770 )
2018-06-06 18:36:03 +08:00
7227db3a0c
executor: fix drop user bug ( #6624 )
2018-06-06 17:13:28 +08:00
8c7f5dcb3e
ddl: find max row id of the table that is backfilling indices, and just backfill indices in range [startHandle, maxRowID]. ( #6518 )
...
* ddl: fix bug when add index meet math.MaxInt64 handle.
2018-06-06 15:04:54 +08:00
7314bdc69c
session: support tso when use tidb_snapshot ( #6749 )
2018-06-06 12:47:06 +08:00
8a326cae76
expression, util: handle err instead of panic in EncodeDecimal ( #6758 )
2018-06-05 19:38:30 +08:00
f8722f93f0
store: print backoff wall clock time out ( #6741 )
2018-06-05 16:08:20 +08:00
006a6286bf
plan: detect table alias duplication for 'JOIN' ( #6716 )
2018-06-05 15:25:49 +08:00
3d31de4bdb
printer: update 'TiKVMinVersion' to '2.1.0-alpha.1' ( #6737 )
2018-06-05 14:36:32 +08:00
a8feebee39
executor: make admin check table error more readable. ( #6617 )
2018-06-05 14:16:30 +08:00
b8539dc62a
plan, executor: fix the wrong result of merge join ( #6753 )
2018-06-05 13:23:52 +08:00
91493c9c31
expression: push builtin function IS_TRUE/IS_FALSE to TiKV ( #6751 )
2018-06-05 12:38:46 +08:00
7a97f6ab72
expression: add Partial1Mode/Partial2Mode/DedupMode for AggFunctionMode ( #6743 )
2018-06-05 11:37:55 +08:00
1e82cb9632
store, kvencoder: add a options to disable txn local latches in mockTikvStore, which may cause lightning to be oom. ( #6750 )
2018-06-05 11:19:05 +08:00
13050b4d60
server: fix fail to fetch profile by pprof ( #6747 )
2018-06-04 22:06:18 +08:00
c348afebf1
stats: refine row count estimation ( #6746 )
2018-06-04 20:45:30 +08:00
30ff743f32
expression: push builtin function FLOOR down to TiKV ( #6736 )
2018-06-04 20:28:30 +08:00
1327ebbf96
ddl: year type should not has unsigned flag ( #6745 )
2018-06-04 18:38:17 +08:00
7f755cdf13
add pull request template ( #6718 )
2018-06-04 15:28:20 +08:00
30f16016d1
types: fix unsigned decimal check and negative overflow bugs ( #6721 )
2018-06-04 15:04:03 +08:00
64e3acadee
admin: admin check table do not use the timezone of session, it leads to false alarm. ( #6699 )
2018-06-04 14:14:04 +08:00
efb3827700
plan: stop finding best child task as soon as possible ( #6735 )
...
* plan: stop finding best child task as soon as possible
2018-06-04 12:47:30 +08:00
f6a3c3f0a5
fix typo ( #6738 )
2018-06-03 23:28:15 +08:00
e2b23619f0
*: adding trace syntax support ( #6644 )
2018-06-03 18:40:47 +08:00
941f1185b3
expression: push ABS to tikv ( #6571 )
2018-06-02 22:36:35 +08:00
c0cb89ea6b
server: fix CI nil pointer panic ( #6733 )
...
server.ShutDown(ctx), it would panic if ctx is nil, because http package
calls <-ctx.Done()
replace ShutDown() with Close()
2018-06-02 22:18:13 +08:00
46da21b5c1
*: support select tidb_is_ddl_owner, to figure out whether tidb instance is ddl owner ( #6682 )
2018-06-01 17:56:44 +08:00
1a896a3b11
server: remove once.Do for HTTP server in tests ( #6691 )
2018-06-01 15:28:57 +08:00
cbbb64a82f
expression:fix cast decimal to decimal side affect ( #6723 )
...
when we update two decimal column a into b with cast truncate, we must confirm a not change.but now decimal to decimal cast has side affect make a changed.
so, we fix it with a copy before cast.
2018-06-01 14:39:40 +08:00
c9c90bd980
ddl, domain: unify logs ( #6719 )
2018-06-01 14:05:40 +08:00
02d59ee2b3
parser: combine from and or into FromOrIn ( #6724 )
2018-06-01 11:36:11 +08:00
4a36ef721c
executor: DML use DatumRow ( #6720 )
2018-06-01 10:22:02 +08:00
5b7d3c6a39
ddl: unify ddl log prefix ( #6711 )
2018-05-31 19:41:21 +08:00
c5f9740ed7
expression: fix err message of ErrOverflow in IntDivideDecimal ( #6683 )
2018-05-31 15:21:41 +08:00
a373f0cc4b
plan: check schema name for column when create table ( #6708 )
2018-05-31 14:24:34 +08:00
9b67f7c5e0
plan: check invalid task after physical optimization ( #6702 )
2018-05-31 13:28:53 +08:00
bec5f3b047
ddl: wait for a while when some error occured to avoid retrying too many times. ( #6601 )
2018-05-30 22:14:58 +08:00
a54383b22e
domain: change default delta update duration to 1 minute ( #6700 )
2018-05-30 22:13:48 +08:00
d890ee682b
*: add check when watching ( #6671 )
...
* *: add check when watching
2018-05-30 21:48:35 +08:00
68b96b9bbc
chunk: fix typo in comment ( #6705 )
2018-05-30 20:54:00 +08:00