Commit Graph

411 Commits

Author SHA1 Message Date
bbec68304e executor,table: support replace operation for table partition (#7309) 2018-08-16 13:28:50 +08:00
82a6c1085c *: introduce the concept of physical ID, code refactory (#7374) 2018-08-16 10:33:24 +08:00
1f8710762d execute/insert: refine data truncate error msg (#7401) 2018-08-16 00:02:45 +08:00
360ef5cee7 expression: tiny change to extend SimpleRewriter's ability (#7373) 2018-08-14 15:22:38 +08:00
410246a346 *: make partitioned table use statistics (#7340) 2018-08-10 18:20:25 +08:00
593810e259 table: fix show index for the partitioned table (#7346) 2018-08-10 16:19:10 +08:00
6569264176 rewrite CheckHandleExists to refactor partition (#7321) 2018-08-08 18:33:09 +08:00
f6dbad0f5c *: move the dirty table modification to table package (#7289) 2018-08-07 15:38:01 +08:00
ae2e3ac0a7 table: remove useless MemoryTable implement (#7292) 2018-08-07 13:54:27 +08:00
4b7a77e2c1 perfschema: simplify performance schema (#7263) 2018-08-07 11:45:49 +08:00
9813c71498 *: support update operation for table partition (#7166) 2018-08-07 10:34:20 +08:00
88bf9f7ba0 admin: support prefix index in admin check table. (#7241) 2018-08-06 11:57:46 +08:00
a5af7a0e1f *: remove variable 'tidb_import_data' and rename SessionVars.ImportingData to LightningMode (#7262) 2018-08-03 10:00:03 +08:00
42bba991b9 ranger: fix prefix index when charset is UTF-8 (#7194) 2018-07-31 16:14:05 +08:00
a816f7882a table,plan,executor: support delete operation for table partition (#7147) 2018-07-30 18:25:51 +08:00
0fa27a4619 *: fix tests failed on Go 1.11beta (#7178)
Many of the failed tests are due to misuse of format placeholder.
2018-07-30 11:36:33 +08:00
6dc3f94393 table: Add a new interface in table.Table (#7167)
In some cases, We need to get the PartitionID instead of the TableID. So
we should call GetID() instead of Meta().ID.
2018-07-27 11:22:52 +08:00
2fba9931c7 *: remove DatumRow (#7165) 2018-07-26 19:42:58 +08:00
5f7abc84fe *: fix panic that upgrade from old version TiDB. (#7136) 2018-07-24 18:59:29 +08:00
537bed3afa table/tables: fix goroutine leak (#7119) 2018-07-24 15:10:02 +08:00
48a42fe424 tables: fix prefix index, when the charset is utf8, truncate it from runes (#7109) 2018-07-19 23:44:56 +08:00
44e34bd304 *: index refactor for table partition (#7062) 2018-07-17 14:01:50 +08:00
7c18d24933 executor, store: fixed daylight saving time issue (#6823)
Thank you for working on TiDB! Please read TiDB's [CONTRIBUTING](https://github.com/pingcap/tidb/blob/master/CONTRIBUTING.md) document **BEFORE** filing this PR.

## What have you changed? (mandatory)

During coprocessor dag task,  it first uses timezone `name`, if non-empty, to get legitimate timezone variable. To achieve this, we need to push down such data into tikv which leads to change the logic of building pushdown request. The logic I mentioned mainly resides in `executor` package. 

I change `timeZoneOffset` to `zone` and add second return parameter `name string`.  The intentioned of doing this to adopt the convention of `time` package. 

For the same purpose, I change `GetTimeZone` to `Location`. As you can see, in `time` package, timezone was bind to `Location`. 


## What are the type of the changes (mandatory)?
- Bug fix (non-breaking change which fixes an issue)


## How has this PR been tested (mandatory)?
unit-test
integration-test will be added shortly
2018-07-16 18:15:19 +08:00
cc722546ef ddl:support alter table drop partition (#6460)
support alter table drop partition
2018-07-11 18:26:19 +08:00
f9a5686f9b executor: make set system variable log shorter (#7029) 2018-07-11 14:09:22 +08:00
26a0338ed5 table: table and partition refactor (#6963)
* let partition and table share the common code
* introduce a new PartitionedTable
2018-07-10 00:32:36 +08:00
c2283c6b03 table/tables: add a mocked sessionctx.Context for partition expression (#6804) 2018-07-06 09:04:40 +08:00
ab332eba2a executor: BadNullError should be ignored by insert ignore statement (#6465) 2018-06-29 13:15:31 +08:00
e837e4b81c *: add a session variable for table partition, tiny update (#6913) 2018-06-28 12:50:01 +07:00
284fe1006e *: support select from partition table (#6642) 2018-06-22 11:38:51 +08:00
9ec13e8898 table/tables: modify AddRecord to handle table partition (#6684)
If table partition is used, AddRecord will add records to the
partition, according to the partition definitions.
2018-06-11 11:06:36 +08:00
1327ebbf96 ddl: year type should not has unsigned flag (#6745) 2018-06-04 18:38:17 +08:00
93efc51b96 *: unify the connection ID format in log (#6670)
Makes tracing the events of a session easier.
2018-05-29 00:31:16 +08:00
a586a3ac3f tables: close RecordSet after Next (#6566) 2018-05-16 22:56:33 +08:00
c0dea7e936 *: move leak check from each test to suite (#6541) 2018-05-15 20:05:03 +08:00
0fda3b408f executor: move IgnoreErr to StmtCtx (#6392) 2018-05-02 17:10:59 +08:00
d56c1f4ef7 table/tables: add logs when column offsets are wrong (#6293) 2018-04-16 19:31:16 +08:00
9fbf8a6637 stats: dynamically update the average column size (#6170) 2018-04-13 16:31:43 +08:00
2b2522be36 *: fix writing null value into not null column in write-only state. (#6249) 2018-04-10 09:21:41 +08:00
fbae31e959 executor: optimization for insert on duplicate key update (#6194) 2018-04-08 15:12:21 +08:00
42f9ddae7a column: fix zero value for binary type (#6213)
Zero value for BINARY type should be byte slice with length.
2018-04-03 20:58:10 +08:00
ccf6da1a46 *: rename NextChunk to Next (#6214) 2018-04-03 20:00:30 +08:00
6ff87d649a ddl, tables: remove useless NewIndexWithBuffer (#6126) 2018-03-23 15:42:29 +08:00
f287451eed tidb: move tidb/*.go to session directory (#6062)
This change makes our top level directory clean.
2018-03-20 09:06:11 -05:00
98a2640286 *: support 'admin recover index' (#5980) 2018-03-15 18:04:35 +08:00
a46480c830 *: export implicit rowid and use it in CRUD (#5984) 2018-03-15 16:35:58 +08:00
631141b22c *: remove Next function for RecordSet (#6040) 2018-03-13 21:05:10 +08:00
e7dda3245a table, executor: fix a unique key with null (#6032) 2018-03-12 21:37:10 +08:00
89dd754579 *: Improve code readability and unified aliases (#5958) 2018-03-06 10:25:18 +08:00
e1121814d2 *: don't import golang.org/x/net/context as goctx alias (#5895)
Now that there is no conflict with sessionctx.Context, this can be
import directly
2018-02-24 03:40:56 -06:00