fa4bdc766d
executor: support the statement of 'set password ... ' and fix issue 2153 ( #2155 )
2016-12-02 18:34:20 +08:00
5738e7fc18
plan: support pushing agg past union all. ( #2150 )
2016-12-02 18:16:51 +08:00
850b29e98b
plan: update gby cols for pushed agg. ( #2145 )
2016-12-01 19:23:14 +08:00
e288b3563f
types/util: use statement context to handle truncate error. ( #2147 )
...
use statement context to handle truncate error in ConvertTo MyDecimal.
2016-12-01 19:11:07 +08:00
3a721da8fc
*: fix cast decimal allocates large memory. ( #2146 )
...
If precision is too large, encode decimal allocates large amount of memory.
This commit set cast decimal unspecified length to default decimal length (10),
also add check on precision and frac on `MyDecimal.ToBin`.
2016-12-01 17:37:10 +08:00
ad30a5b18f
plan: fix the value of attribute correlated of HashAgg ( #2140 )
2016-12-01 11:31:36 +08:00
e321a72998
executor: fix the error when union_scan's src is mem table. ( #2138 )
2016-11-30 21:27:00 +08:00
33dc01f564
plan: fix panic when explain ( #2136 )
2016-11-30 19:12:33 +08:00
bb203afad4
executor: fix data race ( #2134 )
2016-11-30 11:54:05 +08:00
9311ce64fd
executor: fix a bug when join exists in subquery. ( #2106 )
...
* executor: fix a bug when join exists in subquery.
2016-11-30 10:40:22 +08:00
ebcf494e69
plan: cut unuseful search branch to improve performence. ( #2124 )
2016-11-29 15:00:09 +08:00
5230f5eabd
variable: define StatementContext. ( #2121 )
...
StatementContext is used to hold statement execution mode and state.
As every computation need this, there are many API changes.
2016-11-29 14:25:38 +08:00
3c349259e4
*: basic support for builtin function STR_TO_DATE ( #2078 )
2016-11-28 14:17:32 +08:00
36f0f307a8
parser: support show events ( #2099 )
...
* parser: support show events
2016-11-27 22:49:49 +08:00
ea894e8b77
*: Add a function GenByArgs for Error ( #2033 )
...
*: Add a function GenByArgs for Error
2016-11-27 13:18:43 +08:00
73f2ffad90
varsutil: remove dependency on 'types' for 'variable' package ( #2095 )
...
* varsutil: remove dependency on 'types' for 'variable' package
'variable' package will be used in 'types', remove dependency on 'types' by
moving functions to a new 'varsutil' package.
Also extract 'SetExec' from 'SimpleExec'
2016-11-25 13:44:49 +08:00
440abb21f2
plan: set apply's innerplan be the second child of it. ( #2092 )
2016-11-25 11:07:41 +08:00
856d723718
executor: reset default database after drop current database ( #2089 )
2016-11-24 15:06:17 +08:00
b19cc75a94
mysql, types: move MyDecimal and Time from 'mysql' to 'types' package. ( #2082 )
...
So we don't need to handle sql mode in 'mysql' package, avoid potential dependency cycle.
2016-11-24 10:50:31 +08:00
d179a84610
plan: correct enforcer's correlated attribute. ( #2079 )
2016-11-23 20:04:23 +08:00
2a3426ca9d
*: make explain result more clearly. ( #2063 )
2016-11-23 18:58:12 +08:00
79a8c3fc8d
plan: add a Cache plan in physical plan ( #2052 )
...
plan: add Cache plan
* format code
* tiny change
* optimize the logic of code
* rename some variable and optimize logic
* move e.cursor++ down
2016-11-23 15:53:44 +08:00
0af8520a78
sessionctx/variable: remove dependency on context package. ( #2064 )
...
Makes using session variable easier and faster.
Prepare for use session variable to handle data truncated error.
2016-11-23 14:39:48 +08:00
8b070e03ff
executor: fix ci. ( #2058 )
2016-11-22 16:26:28 +08:00
7e041d2cba
expression: let first_row get the first value no matter if it's null ( #2057 )
2016-11-22 16:07:14 +08:00
af5b0e71fc
infoschema: implement infoschema table. ( #2034 )
...
Creates a information schema specific table that implements table.Table interface.
The rows in this table is generated by `[]*model.DBInfo` on request.
Further reduce memory allocation.
2016-11-21 19:47:41 +08:00
91050ff1f8
parser: parse decimal literal instead of float literal ( #2044 )
...
Improves MySQL compatibility.
2016-11-21 19:29:25 +08:00
6dc49a736c
executor: remove filter exec. ( #2037 )
2016-11-20 13:48:46 +08:00
6748d3e83e
*: add comment for show table status. ( #2032 )
2016-11-18 19:10:25 +08:00
39a2c09542
executor_test: clean enviroment for each test. ( #2025 )
2016-11-18 16:45:13 +08:00
2f1cd5be00
plan: make explain result more explicit ( #2022 )
2016-11-17 18:05:18 +08:00
fdb74960a4
add a new expression type: Correlated Column. ( #1973 )
2016-11-17 12:42:12 +08:00
7ddb150920
executor: add more statements for metric of statement counter ( #1967 )
2016-11-15 14:34:15 +08:00
421ceeb8fa
*: make golint happy.
2016-11-15 11:12:24 +08:00
5b21b001da
executor: when we fetch 100000 records from index scan, log it. ( #1990 )
2016-11-14 13:16:22 +08:00
cbf024e8f7
*: clean code. ( #1987 )
2016-11-10 15:38:22 +08:00
e17644716d
refactor show clause. ( #1940 )
2016-11-10 11:14:37 +08:00
5d3bb33afd
util/types: fix decimal conversion. ( #1979 )
...
When datum converts to decimal, we should check the Flen and Decimal of
the given field type, return max value for overflow and round the value
for truncation.
2016-11-09 16:53:30 +08:00
9946941089
plan: add the missing filer conditions ( #1977 )
2016-11-09 10:12:37 +08:00
c12a53fd9e
plan: fix a panic bug when involved join and order by. ( #1963 )
2016-11-08 16:11:10 +08:00
1056c56df1
ddl: support modify column ( #1930 )
...
* ddl: support modify column
2016-11-08 15:20:41 +08:00
b5cd34aea7
executor: fix show create table null timestamp. ( #1968 )
...
Without the extra 'NULL', the create table statement would fail to execute.
2016-11-07 21:17:59 +08:00
5044a8782f
plan: recollect gby cols after retriving index. ( #1966 )
...
* plan: recollect gby cols after retrieving index.
2016-11-07 18:52:41 +08:00
88a66a57ea
*: Improve test for push down. ( #1927 )
2016-11-07 11:42:05 +08:00
1c6c145f94
*: Set custom verbose flag to true ( #1956 )
...
* *: set custom verbose flag to true
* *: update .gitignore
2016-11-05 18:00:13 +08:00
40ad2ba4cb
executor: Load data ignore default value is nil and add log ( #1953 )
...
* executor: load data ignore default value is nil and add log
2016-11-05 16:35:44 +08:00
1f1a60c02a
*: improve log ( #1944 )
...
Add logging for set system variable.
Add connection ID in log.
Adjust some log level.
Improve readability.
2016-11-04 17:11:10 +08:00
85c0954dc2
support builtin function from_unixtime ( #1929 )
2016-11-04 13:15:55 +08:00
5d1a069ada
executor: set scanConcurrency varialbe for distsql Executor on building. ( #1943 )
...
Prevent worker goroutines from reading session variable map, Fixes race.
2016-11-04 09:46:00 +08:00
bfc1ca679a
tidb: load and apply common global variables for the session ( #1942 )
...
Fixes a bug some global variables like 'sql_mode' not applied to session.
2016-11-03 22:01:15 +08:00