a6144ad1e1
*: Support Show processlist ( #1907 )
2016-10-31 18:23:00 +08:00
04b3bc96d0
executor: show original identifier instead of lower case. ( #1909 )
...
Fixes issue https://github.com/pingcap/tidb/issues/1904
2016-10-31 17:57:22 +08:00
d3279072b7
*: support explain aggregation query. ( #1901 )
2016-10-31 15:33:59 +08:00
1550e76e6c
executor: add comments in executor package. ( #1876 )
...
* executor: add comments in executor package.
2016-10-31 10:51:17 +08:00
82971c4779
plan: support aggregation push down. ( #1886 )
2016-10-31 01:17:21 +08:00
727f9e37d2
sessionctx/variable: fix default tx_read_only variable value. ( #1892 )
...
MySQL show this variable as "ON"/"OFF" in documentation, but the real value returned is "1"/“0”.
2016-10-29 10:15:30 +08:00
3fc9ae6bf5
remove useless check
2016-10-28 19:02:23 +08:00
1481e85129
*: add a flag to restrict cartesian product.
2016-10-28 18:38:27 +08:00
3738794502
util/types, table: truncate string by rune count, remove UTF8 validation ( #1877 )
...
Column length defined in create table should limits the rune count rather than bytes.
And MySQL doesn't return error for inserting invalid UTF8 string, we should not do it.
2016-10-26 20:34:35 +08:00
ba4d6bae37
*: support drop user. ( #1854 )
2016-10-24 21:01:02 +08:00
9f615fc5dc
table: change Column type to alias of ColumnInfo ( #1855 )
...
So we can use a ColumnInfo directly, without coping, reduce memory usage.
2016-10-20 21:48:08 +08:00
0d49936ef9
expression: fix a bug when checking whether two aggregation functions are same. ( #1852 )
2016-10-20 19:53:09 +08:00
406c5c4094
*: support common aggregation functions elimination. ( #1843 )
2016-10-20 15:58:34 +08:00
e0e5a5821b
executor: support creating user with no password. ( #1841 )
2016-10-18 20:12:53 +08:00
2df4a4f29b
types: returns data too long error ( #1837 )
...
* types: returns data too long error when inserting a string longer than field type length.
2016-10-18 14:12:06 +08:00
3d670c47b0
executor,table: remove LockKeys and Truncate method in Table interface. ( #1833 )
...
Those two method should not be defiend in Table, LockKeys should be implemented
In SelectLock executor, Truncate has changed to use DDL operation.
2016-10-18 00:35:45 +08:00
efc96a73a6
*: Support set dist sql concurrency by set system variable ( #1795 )
2016-10-17 15:12:17 +08:00
8935bf90ec
executor: set time zone offset in tipb.SelectRequest. ( #1816 )
...
The time zone offset will be used by TiKV to compare timestamp type.
2016-10-11 17:13:45 +08:00
9b9c01100e
plan: support topn push down in plan phase. ( #1769 )
2016-10-11 15:17:00 +08:00
a5c73c155d
plan: fix a topn bug ( #1806 )
2016-10-10 21:58:04 +08:00
a33240d8a8
parser: set flag in parse function. ( #1799 )
...
Every `ast.Statement` needs to set flag before use, set the flag in parse function,
so we don't need to set it somewhere else and won't forget to do it.
2016-10-09 11:36:56 +08:00
93e6796d2b
*: support history read with old schema ( #1790 )
...
When user set 'tidb_snapshot' variable, load and use the schema at the snapshot time.
2016-10-08 19:54:48 +08:00
f86a32d261
ddl: write DDL binlog. ( #1752 )
...
Pass query string in context, also disallows prepare DDL, so we can be sure that
DDL query do not contains parameter marker.
change binlog row encoding format.
including columnID in binlog row, so it can be adapted to different schema version.
prepend old row for update binlog when don't have PK.
2016-10-08 11:48:58 +08:00
b399060118
ddl: truncate table by DDL operation. ( #1766 )
...
Currently, truncate table deletes rows in table in one large transaction,
too large transaction is very likely to fail.
This commit use DDL to do the work, it returns instantly, old data will be
deleted by background worker.
2016-09-29 14:22:02 +08:00
b7e826e0e1
executor: remove aggregate and push down functions. ( #1777 )
...
The logic has been move to plan.
2016-09-28 22:29:19 +08:00
455a69eadb
Add a test to avoid calling addAggregation multiple times. ( #1776 )
2016-09-28 19:47:39 +08:00
4d3844a378
remove useless code. ( #1767 )
2016-09-27 09:10:57 +08:00
471731b04e
plan: consider limit during building physcial plan. ( #1760 )
...
Consider limit in CBO framework.
2016-09-26 21:53:17 +08:00
f751336f70
executor: add metric for statement counter ( #1755 )
2016-09-26 13:09:28 +08:00
50fa99ad60
server: add metrics for duration of each session execute stage ( #1751 )
2016-09-23 14:42:29 +08:00
685fb1b0c2
executor: split big test file into smaller files. ( #1757 )
...
One big test file makes it hard to locate a specific test case.
2016-09-22 21:55:24 +08:00
91303f8ddf
fix a bug about upadte stmt. ( #1756 )
2016-09-22 17:08:34 +08:00
1dd9e89eb0
*: write binlog to unix socket. ( #1660 )
...
support write binlog to a unix socket through grpc.
2016-09-21 13:09:03 +08:00
2456804b25
remove useless code. ( #1745 )
2016-09-20 21:42:57 +08:00
b8994bb139
*: Support stream aggregation. ( #1735 )
...
* *: Support stream aggregation.
2016-09-20 17:14:31 +08:00
ade11fe9f4
*: support history read. ( #1734 )
...
* *: support history read.
This commit only handles the case when scheme does not change.
Use history schema will be supported in the following PR.
2016-09-19 15:37:30 +08:00
648bee53b2
add stream agg executor. ( #1730 )
2016-09-18 12:49:57 +08:00
5caa0f5e29
decide push down conditions during plan building phase. ( #1731 )
2016-09-18 10:35:52 +08:00
efa2db0b05
*: Rename xapi to distsql ( #1725 )
...
distsql is a more clear name.
2016-09-14 10:20:33 +08:00
6dec14119a
Fix typos ( #1714 )
2016-09-09 22:58:47 +08:00
fe3555e77d
*: FLUSH TABLE statement front end ( #1701 )
2016-09-08 13:27:09 +08:00
4d22f97013
support heap sort in sql layer. ( #1697 )
2016-09-08 12:57:03 +08:00
de27a91202
*: Merge adjacent handles when building key range ( #1696 )
2016-09-07 11:12:06 +08:00
9257a4181f
*: fix show create table bug ( #1689 )
2016-09-06 11:30:27 +08:00
3e3ae885f4
*: make race with debug level ( #1687 )
...
* *: make race with debug level
* *: fix the problem of compatibility on the Mac
* ddl: pass make race
2016-09-05 15:42:47 +08:00
232605aa0e
Avoid using tipb.KeyRange ( #1685 )
...
Do not use tipb.KeyRange.
Use EncodeRowKeyWithHandle to generate endKey.
Avoid decode values when only need handle.
2016-09-05 14:53:46 +08:00
b9f67a8b3d
executor: push limit on double read when where is nil ( #1683 )
2016-09-03 20:06:57 +08:00
89f840e6a0
fix the bug of double read with order and limit ( #1681 )
2016-09-02 17:53:14 +08:00
9ca75f13bb
fix a bug about double read index. ( #1680 )
2016-09-02 16:30:59 +08:00
645b939253
*: simple LOAD DATA escape support ( #1658 )
2016-09-02 09:57:42 +08:00