Commit Graph

3892 Commits

Author SHA1 Message Date
a2da8fe5f4 store/tikv: add raw kv api. (#2101)
* store/tikv: add raw kv api.
2016-11-28 18:34:32 +08:00
2c34a75aba ddl: check duplicated cols when execute alter table add index (#2103) 2016-11-28 15:06:17 +08:00
633a66edfb tikv: change batch size from 32k to 4k (#2105)
4k is better for importing data.
2016-11-28 14:41:27 +08:00
3c349259e4 *: basic support for builtin function STR_TO_DATE (#2078) 2016-11-28 14:17:32 +08:00
5c9f073072 *: Do retry when schema is expired (#2094)
*: Do retry when schema is expired
2016-11-28 12:17:40 +08:00
36f0f307a8 parser: support show events (#2099)
* parser: support show events
2016-11-27 22:49:49 +08:00
e4ec962f33 Add tidb user google group link (#2090) 2016-11-27 22:27:04 +08:00
f0db619009 *: refactor constant propagation. (#2087) 2016-11-27 16:21:12 +08:00
ea894e8b77 *: Add a function GenByArgs for Error (#2033)
*: Add a function GenByArgs for Error
2016-11-27 13:18:43 +08:00
2225c90857 plan: process in subquery correctly. (#2093)
* plan: process in subquery correctly.
2016-11-25 19:03:06 +08:00
9de3e70b6b plan: handle the missing err to avoid panic. (#2096) 2016-11-25 16:28:42 +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
13ba6e1989 plan: refine code for not between. (#2076) 2016-11-25 11:38:29 +08:00
440abb21f2 plan: set apply's innerplan be the second child of it. (#2092) 2016-11-25 11:07:41 +08:00
40faf7da3c ddl: Support creating anonymous index (#2075)
* ddl: support creating anonymous index
2016-11-24 22:13:00 +08:00
856d723718 executor: reset default database after drop current database (#2089) 2016-11-24 15:06:17 +08:00
718822530b domain: update log level (#2088) 2016-11-24 14:35:10 +08:00
9cca7b0b02 types: move Bit, Enum, Set, Hex to types package (#2085)
Consistent with Time and MyDecimal.
2016-11-24 12:28:55 +08:00
4388bfd57d ddl: update lease (#2086) 2016-11-24 12:13:04 +08:00
15e446c25b *: Speed up test (#2083)
* *: reduce test time
2016-11-24 11:34:52 +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
7a8c3c32a7 distsql: push nullif down (#2068)
* distsql: support pushing nullif down
2016-11-23 20:46:54 +08:00
d179a84610 plan: correct enforcer's correlated attribute. (#2079) 2016-11-23 20:04:23 +08:00
12360f6e7a domain: add log (#2080) 2016-11-23 19:48:07 +08:00
2a3426ca9d *: make explain result more clearly. (#2063) 2016-11-23 18:58:12 +08:00
f8c0b059d5 driver.go & interpreter: remove driver.go and interpreter.go (#2066) 2016-11-23 18:17:57 +08:00
3683d5f950 plan & expression: split the logic of column pruning and indices resolving. (#2051) 2016-11-23 18:01:27 +08:00
23136f8e0f distsql: push ifnull down (#2067) 2016-11-23 17:35:30 +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
308032b784 store/tikv: exclude some tests for race detector. (#2065) 2016-11-23 12:01:10 +08:00
951f88294d distsql: support pushing isnull down (#2069) 2016-11-23 11:35:53 +08:00
f4b78e44da server: speed up unit test (#2010)
run many test cases parallel
split databases in server package for parallel
2016-11-23 10:46:43 +08:00
2432209720 domain: Fix data race (#2062)
* *: fix data race
2016-11-22 20:59:05 +08:00
1181acc640 *: Reduce loading schema times (#1984)
* *: only if it's success to do DDL or in reloadLoop to load schema
2016-11-22 18:34:06 +08:00
3612ba0e0f binlog: add sequence to binlog.TableMutation (#2060)
Add sequence in binlog.TableMutation to preserve the original mutation order.
2016-11-22 17:54:24 +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
c9d114f3d5 ddl: Fix the data race in foreign_key_test.go (#2054)
* ddl: fix the data race in foreign_key_test.go
2016-11-22 16:02:42 +08:00
81d1bddc9a store/tikv: fix prewrite return error. (#2056) 2016-11-22 15:10:49 +08:00
60c251b08d ddl: speed up test (#2049) 2016-11-22 10:26:33 +08:00
649ab2852e ddl: tiny clean up (#2050) 2016-11-22 10:01:40 +08:00
6b444f8e55 server: check an array out of range for malform packet (#2048) 2016-11-21 23:10:28 +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
84756589da mock-tikv: return correct Locked error. (#2043) 2016-11-21 17:19:35 +08:00
b92330c068 store/tikv: increase lock ttl for large transactions. (#2004) 2016-11-21 14:35:15 +08:00
d7318e72bd plan: distinguish the physical plan test and logical plan test. (#2042) 2016-11-21 14:20:52 +08:00
8e1e13d797 Update bootstrap_test.go (#2041) 2016-11-21 09:33:36 +08:00
f3263f92f3 tikv: using 32k as default batch size (#2021) 2016-11-21 00:12:09 +08:00