Commit Graph

3675 Commits

Author SHA1 Message Date
b02e357aa9 fix bugs when push logic ops and bit ops down (#1838) 2016-10-18 16:43:35 +08:00
6938f973cb server: Change handshake error log level (#1839) 2016-10-18 14:41:58 +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
450b554c9f store: support topn in localstore (#1819) 2016-10-18 13:58:09 +08:00
d99d1db295 coprocessor: reserve enough chan size. (#1835) 2016-10-18 13:39:17 +08:00
a12842e67a store/tikv: add/update some logs. (#1836) 2016-10-18 12:51:40 +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
e1895e6f8c store/tikv: handle new region metas inside StaleEpoch error (#1820) 2016-10-17 19:54:48 +08:00
efc96a73a6 *: Support set dist sql concurrency by set system variable (#1795) 2016-10-17 15:12:17 +08:00
6842efd281 plan: fix a bug when calculate range (#1828)
* plan: fix a bug when calculate range
2016-10-14 18:51:42 +08:00
1fbdb1b193 *: Tiny clean up (#1826)
* *: add error check and error trace
* server: rename MySql to MySQL
2016-10-14 18:11:57 +08:00
ff1c7b1f0a table: check valid UTF8 value for UTF8 column (#1818)
We need to check if the input data is valid UTF8 string if the column charset is UTF8,
Otherwise, it may cause more serious error in the future, and hard to fix.
2016-10-14 16:00:02 +08:00
23edc3dfd3 Makefile: Filter out golint error about context.Context (#1824)
golint add a new rule that 'context.Context' should be the first parameter of a function.
But that refers to standard library package, we can ignore it.
2016-10-14 10:54:16 +08:00
c64b8938fd [doc]: add Chinese doc reference (#1821)
* add Chinese doc reference
2016-10-13 19:17:10 +08:00
deeaf077d7 plan: fix a bug about doing aggregation plan. (#1822) 2016-10-13 17:14:25 +08:00
7d4508669f store/tikv: add gc config metrics. (#1814) 2016-10-13 13:19:39 +08:00
95e49c03ea push arithmetic operation down to kv (#1817) 2016-10-13 10:03:47 +08:00
2e00134963 vendor: update goleveldb/memdb tipb/go-binlog and kvproto packages (#1812) 2016-10-11 17:43:41 +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
d73742cf3d plan: make some editorial changes to the comments (#1813)
* plan: make some editorial changes to the comments

* plan: make some editorial changes to the comments

@shenli @coocood Please take a look. Thanks

* plan: incorporate comments

Change "the empty required property" to "an empty *requiredProperty"

* change the fomat
2016-10-11 16:25:14 +08:00
9b9c01100e plan: support topn push down in plan phase. (#1769) 2016-10-11 15:17:00 +08:00
0956a65cbd *: update tipb for time zone offset (#1807) 2016-10-11 11:08:33 +08:00
7e707bb96d plan: add comments for readability. (#1804)
* plan: add comments for readability.
2016-10-11 10:21:17 +08:00
a5c73c155d plan: fix a topn bug (#1806) 2016-10-10 21:58:04 +08:00
80ea2ea093 server: fix connection string collation (#1811) 2016-10-10 19:02:40 +08:00
a672100ebd *: update dependencies and remove obsolete commands in kvproto. (#1797)
Update vendor and remove obsolete cmds.
2016-10-10 10:05:47 +08:00
0e289d1c0e *: Update TiDB version, check ClientLocalFiles capability when handling load data operation (#1774) 2016-10-09 20:36:43 +08:00
8930ed05b1 parser: fix bug 'BINARY' not parsed as charset name (#1803)
* parser: fix bug 'BINARY' not parsed as charset name
2016-10-09 19:45:53 +08:00
900a7d67dd server: add comments for readability. (#1798) 2016-10-09 18:48:22 +08:00
1d06bc63ea fix a bug in projection elimination (#1801) 2016-10-09 17:33:06 +08:00
b2bf4f5504 support projection elimination (#1740) 2016-10-09 12:32:59 +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
95661dab7c ddl: Fix the error format bug. (#1786) 2016-10-08 11:31:10 +08:00
a14f27c8ea Merge pull request #1792 from pingcap/shenli/kv-cleanup
kv: Tiny cleanup
2016-10-04 23:43:50 +08:00
bb2a1461d0 kv: Tiny cleanup 2016-10-03 22:06:06 +08:00
1a83e04957 store/tikv: fix a data race. (#1789) 2016-09-30 19:32:19 +08:00
6d8bc6a2ee store/tikv: add safeTime config for gc worker. (#1754)
* store/tikv: add safeTime config for gc worker.
2016-09-30 10:26:08 +08:00
e6cec94876 ddl: use gauge instead of counter (#1783) 2016-09-29 16:25:15 +08:00
48b8cbb518 makefile: remove install, unexport GOPATH, introduce GOGET GOBUILD (#1782)
* makefile: remove install, go get use origin GOPATH
* introduce a GOGET
* makefile: don't export GOPATH and just use _vendor when build and test
2016-09-29 16:03:33 +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
6e87d52cfc *: use defer (#1781) 2016-09-29 13:54:07 +08:00
0cbbec594c model: show RowCount value after the operation of admin show ddl (#1780) 2016-09-29 13:24:47 +08:00
e472f5aa3b server: handle ClientPluginAuthLenencClientData capability properly (#1772)
fix issue https://github.com/pingcap/tidb/issues/1768
2016-09-29 10:38:50 +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
5df5085e33 *: Add row count field in a job, fix a drop schema bug and pass race (#1759) 2016-09-28 18:11:40 +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