Commit Graph

552 Commits

Author SHA1 Message Date
350a046975 executor,store/mockstore: add a test to mock get tso fail (#8566) 2018-12-04 22:10:08 +08:00
3b68ee59a6 planner: for UNION statements, ORDER BY cannot use column references including a table name (#8389) 2018-11-29 12:40:08 +08:00
d301c16e0e ddl: fix a bug that cancel add index ddl job when workers are not run, which cause tidb ddl hang up (#8171) 2018-11-28 17:10:55 +08:00
487bb50390 planner, executor: fix tp.Flen size when union with castIntAsString (#8442) 2018-11-27 11:35:52 +08:00
3e0e7d5a69 plan: support subquery in Do statement (#8343) 2018-11-20 14:10:24 +08:00
3742a0d602 *: Txn() function signature refactor and remove ActivePendingTxn() (#8327)
* change Txn() function signature to Txn(active bool)
* ActivePendingTxn() is not used any more because Txn() does the work
* change executor builder getStartTS() uint64 to getStartTS() (uint64, error)
2018-11-16 11:10:39 +08:00
0c3e9c1652 session,executor: run statement without transaction (#8260)
`set @@autocommit = 0`
`select 1` // This statement should not make the session enter a transaction,
because it never need Txn().
Make txn lazy initialize
2018-11-14 20:10:58 +08:00
aa979705df planner, executor: eliminate extra columns introduced by OrderBy upon Union (#8290) 2018-11-13 17:03:34 +08:00
6a99fa25d7 executor: fix union dual table order by but not sort (#8251) 2018-11-13 15:27:18 +08:00
29f14d4178 *: change default charset and collation from 'utf8 utf8_bin' to 'utf8mb4 utf8mb4_bin' (#7965) 2018-11-09 16:32:21 +08:00
fffb49bce6 *: modify tests to work with only-full-group-by on (#8163) 2018-11-05 10:41:48 +08:00
761365b31c *: avoid using columnEvaluator for the Projectin build by buildProjtion4Union (#8142) 2018-11-02 17:28:09 +08:00
dd65caac31 planner: fix issue#8135 (#8143) 2018-11-02 14:31:11 +08:00
8ed433036b planner: refine PhysicalProjection.ResolveIndices during neighbouring Proj (#8073) 2018-11-02 13:42:12 +08:00
32b1dbd8d5 *: rename "github.com/pkg/errors" to "github.com/pingcap/errors" (#8136)
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
c23a30c1bb planner/core: fix index resolution on PhysicalIndexReader (#8118) 2018-10-31 16:13:18 +08:00
3febc22811 expression: fix cast json to decimal bug. (#8030) 2018-10-29 17:02:32 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
76f84f4536 executor, planner: clone proj schema for different children in buildProj4Union (#7999) 2018-10-23 13:34:03 +08:00
1d3bb7b47f executor: fix panic when limit is too large (#7936) 2018-10-18 14:33:18 +08:00
de931ca953 planner, executor: refine ColumnPrune for LogicalUnionAll (#7930) 2018-10-18 13:30:32 +08:00
1bb15f14fa admin: fix admin check table bug of byte compare (#7887)
* admin: remove reflect deepEqual
2018-10-16 18:24:58 +08:00
dbdd806c0e *: add session variable "tidb_enable_cascades_planner" (#7879) 2018-10-12 13:21:51 +08:00
d7a59ec5a3 executor: remove some useless code and avoid some redundancy check (#7639) 2018-10-12 12:56:02 +08:00
db151bb66f domain: fix memory leak for stats (#7864) 2018-10-11 10:58:22 +08:00
fd71236e41 ddl: fix alter add index on virtual column bug (#7575) 2018-10-10 13:50:20 +08:00
8917a15fe1 util/timeutil: fix get tz at mojave (#7784) 2018-09-27 09:43:18 +08:00
e79bd946ed *: change package name from plan to planner (#7760) 2018-09-25 11:16:39 +08:00
29441950a3 *: write system timezone into mysql.tidb in bootstrap stage. (#7638) 2018-09-14 22:15:00 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
b3d4ed79b9 server, mysql: return correct column name and column label name (#7600) 2018-09-08 13:06:14 +08:00
b2bfd8f91a executor: support load data with ignore lines (#7576) 2018-09-06 22:58:06 +08:00
3d891d9c26 executor: fix update join result when join table order changed (#7571) 2018-09-03 14:12:35 +08:00
333ead673f ddl: fix admin check bug (#7359) 2018-08-21 15:34:17 +08:00
6e7d75299d test: refine test (#7414) 2018-08-16 17:05:59 +08:00
7f286f5c12 types: add one more space to make json pretty (#7389) 2018-08-16 11:04:39 +08:00
1f8710762d execute/insert: refine data truncate error msg (#7401) 2018-08-16 00:02:45 +08:00
5404e2eaae ddl: add admin check before drop table using building flag. (#7343) 2018-08-14 21:44:57 +08:00
fc89a6421a expression,ddl: fix fraction part handle of current_timestamp (#7355) 2018-08-14 13:20:01 +08:00
9667eca8e4 executor: MaxOneRow operator should keep its promise (#7375) 2018-08-14 12:44:07 +08:00
702a116a5e admin: fix admin check table false alarm in the case that index contains pkIsHandle column (#7317) 2018-08-09 17:37:47 +08:00
22519aefc2 *: update import path from coreos/gofail to etcd-io/gofail to fix ci (#7329) 2018-08-09 15:48:01 +08:00
18aae131bf test: fix data race in executor_test.go/checkRequestClient (#7326) 2018-08-09 10:02:13 +08:00
cd458038f5 infoschema: fix information schema data race (#7318) 2018-08-08 21:55:51 +08:00
359df6ecc2 variable, ddl: add session variable 'tidb_ddl_reorg_priority' to set operation priority of ddl reorg (#7116) 2018-08-08 17:16:05 +08:00
6178cfd225 *: fixed some typo. (#7277) 2018-08-05 13:50:51 +08:00
67e724a5fe executor: fix a bug of update with outer join (#7177) 2018-08-02 13:47:56 +08:00
8739d80db0 executor: fix big_unsigned_int union decimal sign bug (#7202) 2018-07-31 21:21:22 +08:00
343cb849b8 *: fast path point select (#6937) 2018-07-30 18:13:47 +08:00
a8012590dc *: fix union result when mix signed/unsigned columns (#7112) 2018-07-30 13:48:44 +08:00