Commit Graph

8026 Commits

Author SHA1 Message Date
c902fa6661 *: move column, constant, like typeinfer to expression rewrite (#3667) 2017-07-10 19:15:24 +08:00
32159d502f expression, executor: rewrite builtin space function. (#3684) 2017-07-10 17:53:59 +08:00
f4abbdbc5e expression, plan: move typeinfer of agg funcs to expression rewriter (#3654) 2017-07-10 16:24:25 +08:00
bebd5c59e4 statistics: fix bug when calculate lowerbound (#3677) 2017-07-10 15:40:46 +08:00
bd64339e93 plan: first step of join auto-select. (#3623) 2017-07-10 15:21:22 +08:00
cb7b400995 expression, executor: rewrite builtin function MD5 (#3673) 2017-07-10 10:48:28 +08:00
9ff2fbae67 refactor builtin string function ord (#3671) 2017-07-09 11:46:10 +08:00
c04bc3d8f0 tidb/privilege/privileges: make show databases available with any global privilege (#3666)
* tidb/privilege/privileges: make show databases available with any global privilege
2017-07-08 22:49:08 +08:00
2480b50589 executor: support SQL mode NO_AUTO_VALUE_ON_ZERO (#3661)
* support sql_mode NO_AUTO_VALUE_ON_ZERO
2017-07-08 22:22:07 +08:00
8ff3c788dc expression: builtin now() should consider timestamp variable (#3590)
* expression: builtin now() should consider timestamp variable
2017-07-08 21:00:12 +08:00
3dede36c84 expression, executor: rewrite builtin func log2 (#3653) 2017-07-08 20:28:46 +08:00
0c3e6f4e12 expression, executor: rewrite builtin func degrees (#3642) 2017-07-08 13:39:42 +08:00
f207800c80 store/tikv: fix bug of cleaning store cache on grpc canceled error (#3652) 2017-07-07 17:44:27 +08:00
81b008338a ddl: disable alter table modify enum column (#3657) 2017-07-07 15:51:21 +08:00
78f4cef342 plan: check database when parsing show tables and show table status (#3655)
* Show errors when no database is selected
2017-07-07 13:40:33 +08:00
1d0fca7bce executor: fix some compatibility prob in multi update (#3651) 2017-07-07 11:17:29 +08:00
6bd585f27c json: add uint64 support. (#3648) 2017-07-07 11:02:33 +08:00
cf608d88f5 ddl: virtual column cannot be used in primary key. (#3645) 2017-07-07 09:24:47 +08:00
aa41e3aaf4 *: support show stats (#3633) 2017-07-06 16:51:59 +08:00
35d2ca006a expression, parser: simplify the type inferer of builtin funcs (#3617) 2017-07-06 16:18:40 +08:00
403cc7a765 ddl: set no default flag when alter/change col (#3634) 2017-07-06 15:33:23 +08:00
8d0f718e56 expression, util: 1. refine castStrAsReal 2. cast use new architecture (#3629) 2017-07-06 14:41:33 +08:00
a89f0f037b executor: fix typo. (#3637) 2017-07-06 13:21:43 +08:00
e356b2663f tidb-server: fix typo. (#3632) 2017-07-05 19:38:22 +08:00
467a01a2d0 *: support drop stats (#3615)
* plan, executor: support drop stats

* ast: add comment

* address comment

* address comment
2017-07-05 17:01:36 +08:00
0487312f80 Use one function to handle IPv4Mapped and IPv4Compat (#3596) 2017-07-05 15:23:48 +08:00
91f08579b6 expression, executor: rewrite builtin func Sin (#3609)
* builtin-Sin

* builtin-Sin add test

* Fix tp.Flen

* add valid string input argument test

* Nothing changed

* fmt code

* fix comment
2017-07-05 13:42:15 +08:00
760bdc9d5b expression, executor: rewrite builtin func Cos (#3607) 2017-07-05 13:03:42 +08:00
623ac1ffb0 expression, executor: rewrite builtin func tan (#3621) 2017-07-05 10:56:41 +08:00
fc161459b3 expression, executor: rewrite builtin strcmp function (#3559) 2017-07-05 10:36:24 +08:00
d07f2eae96 ddl: fix add index with PK (#3622) 2017-07-05 10:13:54 +08:00
6135cabb3d *: tikv.NewMockTikvStore API refactor (#3573) 2017-07-04 20:51:21 +08:00
900fa9fbb9 expression:rewrite password using new expression evaluation architecture (#3593) 2017-07-04 17:48:11 +08:00
ebfacce977 *: set length and decimal for constant values (#3608) 2017-07-04 13:43:40 +08:00
8072082323 statistics: introduce selectivity calculation (#3161) 2017-07-04 13:00:19 +08:00
4023bb88b3 plan: Clean up (#3606) 2017-07-04 00:13:08 +08:00
3f99d7e3f0 util/types: fix convert mysqltime to timestamp (#3587)
1. only timestamp need to consider timezone
2. the result type should be set to timestamp
2017-07-03 22:23:12 +08:00
45cd7c9864 builtin, json: add json_object and json_array functions. (#3562) 2017-07-03 20:23:27 +08:00
8542248c7a tidb-server: change prometrics metric instance name to host_port (#3588) 2017-07-03 14:10:50 +08:00
53716dc8a6 tikv/2pc:disable skip_contraint_check (#3600) 2017-07-03 13:19:55 +08:00
4966dfbdeb plan: let getPushedProp fit the plan with multi children. (#3589)
* plan: let getPushedProp fit the plan with multi children.
2017-07-03 12:28:28 +08:00
0f50d286bd statistics: add table.GetRowCountByColumnRanges method. (#3530) 2017-07-03 10:52:41 +08:00
73cfeac540 statistics: add variable member for table. (#3586) 2017-07-03 10:43:23 +08:00
c7a714ffff store/tikv/mock-tikv: remove useless encode (#3591) 2017-07-01 13:30:23 +08:00
6d49c5160c plan: a pre-work for changing the cbo framework. (#3577) 2017-06-30 17:59:43 +08:00
e440ec77ea store/tikv: export LockResolver. (#3585) 2017-06-30 16:30:21 +08:00
3ea6a4a0f7 correct the name of contributor (#3584) 2017-06-30 15:45:08 +08:00
3b26de9c9f Fix typo (#3583) 2017-06-30 14:48:45 +08:00
0dd049d9b2 [expression] rewrite built-in string function: REPEAT (#3546)
* expression, executor: rewrite builtin func repeat

* expression, executor: rewrite builtin func repeat, remove unnecessary non-binary flag settings

* only cover retType in ScalaFunction when builtin function's retType is not mysql.TypeUnspecified

* add test cases in executor_test.go for built-in udf REPEAT
2017-06-30 14:09:29 +08:00
6157ea87a1 tikv/2pc:prewrite primary first when skip_contraint_check is true (#3561) 2017-06-29 23:31:11 +08:00