Commit Graph

8026 Commits

Author SHA1 Message Date
aef66b2435 statistics, store: tidy local variable (#9679) 2019-03-13 10:34:19 +08:00
52b7bfda0e types: use switch table to save memory (#9650) 2019-03-12 22:04:22 +08:00
e30af15e28 planner/core: move useless equal conditions to other conditions for generating index join plan (#9562) (#9601) 2019-03-12 20:53:36 +08:00
942b2cfc4a executor: fix data race in testChunkSizeControlSuite (#9676) 2019-03-12 17:52:25 +08:00
a2d4bd1df0 log: temporary remove recvTs from context log (#9673) 2019-03-12 17:20:42 +08:00
52c8267a73 *: tiny refactor, more go idiom (#9660) 2019-03-12 14:12:56 +08:00
7d0b660a84 session: skip loading previlige when "skip-grant-table" is enabled (#9654) 2019-03-12 11:02:13 +08:00
353b216b7a planner, executor: check col.OrigColName instead of col.ColName in isCoveringIndex (#9637) 2019-03-12 10:19:26 +08:00
6e8cd3c7dd executor: support window function nth_value (#9596) 2019-03-12 00:42:37 +08:00
0dada1ec37 binlog: update binlog enable config && add tidb_log_bin system variable (#9625) 2019-03-11 22:18:46 +08:00
612dd14fd4 planner/core: fix unexpected error of window function (#9567) 2019-03-11 21:10:23 +08:00
6e085bedb6 ddl: fix create table with like bug when refer table has non-public column/index (#9580) 2019-03-11 20:24:45 +08:00
f0aca29fff executor: support window function cume_dist (#9619) 2019-03-11 19:30:54 +08:00
ec208f5484 planner: the expression field name disappears when there's window function (#9644) 2019-03-11 19:01:41 +08:00
45c9458236 planner: fix select denied message (#9627) 2019-03-11 18:38:08 +08:00
22af193369 Allocate slice from memory pool (#9643) 2019-03-11 18:32:56 +08:00
Fox
4fb66b9304 planner: cleanup unnecessary warning in join elimination (#9631)
<!--
Thank you for contributing to TiDB! Please read TiDB's [CONTRIBUTING](https://github.com/pingcap/tidb/blob/master/CONTRIBUTING.md) document **BEFORE** filing this PR.
-->

### What problem does this PR solve? <!--add issue link with summary if exists-->

Fix #9590
### What is changed and how it works?
Return err to optimizer instead of using log.warn which may cause unnecessary and annoying warnings printed when eliminating outer join.

### Check List <!--REMOVE the items that are not applicable-->

Tests <!-- At least one of them must be included. -->

 - No code

Code changes

 - Has interface methods change


Side effects


 - Increased code complexity


Related changes
2019-03-11 17:55:29 +08:00
fc7458eef2 Remove a redundant GetInfoSchema call (#9640) 2019-03-11 17:28:58 +08:00
35829101ae expression: support bit for addtime & subtime (#6316) 2019-03-11 16:50:35 +08:00
9891b3d546 executor, types: update tests for the description format of type year (#9253) 2019-03-11 15:56:58 +08:00
0bec639074 planner: correct ExpectedCnt for children plans of join (#9497) 2019-03-11 15:08:02 +08:00
80110fbf78 *: refactor slow log format and parse slow query log to SLOW_QUERY table. (#9290) 2019-03-11 14:42:29 +08:00
a968f91fc9 expression: remove useless functin fieldTypeFromPB (#9629) 2019-03-11 12:10:47 +08:00
3045359b4e planner: Fix Error message about select ... inner join (#9626) 2019-03-10 23:08:25 +08:00
d672477ef5 *: upgrade to go 1.12 (#9299) 2019-03-09 15:37:37 +08:00
7072052316 expression,types: improve str_to_date builtin function compatibility (#9617) 2019-03-09 15:15:31 +08:00
c0ca027f51 stats: fix data race when updating correlation (#9594) 2019-03-09 14:47:00 +08:00
8e812d87c0 ddl: check no partitions error when create partition table (#9531) 2019-03-09 13:13:42 +08:00
4188ae19c0 log,server: add contextual log util & test it in conn.go (#9548) 2019-03-09 11:23:45 +08:00
cb7a624434 build:add codecov.yml (#9618) 2019-03-08 23:28:19 +08:00
3910a720df *: add assertion in kvproto to check data consistency (#9180) 2019-03-08 16:49:31 +08:00
85c4553c4e planner: chose outer table based on cost when both tables are specified in TIDB_INLJ (#9579) 2019-03-08 13:25:44 +08:00
b00c2073bf build:fix git describe (#9611) 2019-03-08 11:09:30 +08:00
a9caa792b1 ddl_test: fix the wrong test (#9610) 2019-03-08 10:45:47 +08:00
e6b1c4cfae planner: fix window func support (#9605) 2019-03-07 23:28:56 +08:00
548afb0c76 ddl: fix data race in test (#9526) 2019-03-07 22:10:08 +08:00
b3ccefcec2 docs: change all the MySQL version from 5.7.10 to 5.7.25 (#9553) 2019-03-07 21:27:43 +08:00
c00846001d *: update go-proxyprotocol version (#9583) 2019-03-07 19:07:01 +08:00
d35d3a5820 variable: change "ddl_slow_threshold" (#9043) 2019-03-07 16:36:11 +08:00
76e1e58511 build: add check-static in test (#9572) 2019-03-07 15:56:15 +08:00
2d89e3be94 executor: Chunk size control test for Limit+TableScan and Limit+IndexScan (#9574) 2019-03-07 15:29:50 +08:00
b3d49c2f22 ddl:fix data race in call_back_test.go (#9491) 2019-03-07 15:03:38 +08:00
108c3d2070 domain, store/tikv: enable etcd client auto sync (#9575) 2019-03-07 14:20:17 +08:00
f8d90202c0 use single batch for insert (#9406) 2019-03-07 11:52:10 +08:00
247777d870 executor: support window function first_value and last_value (#9560) 2019-03-06 21:43:14 +08:00
2b646cb58b planner, executor: handle default frame for window functions (#9544) 2019-03-06 19:37:30 +08:00
2f69a28d74 executor: control Chunk size for StreamAgg&HashAgg (#9512) 2019-03-06 16:44:52 +08:00
4ccc4c1bcb executor: add error check (#9563) 2019-03-06 10:07:36 +08:00
d7ac1138e8 store/tikv: add sanity check for startTS in 2pc (#9555)
* store/tikv: add sanity check for startTS in 2pc

Signed-off-by: disksing <i@disksing.com>
2019-03-05 17:57:55 +08:00
63b49c9e42 util: fix issue #9532, quote database name before running SQL with it (#9547) 2019-03-05 14:07:23 +08:00