Commit Graph

1204 Commits

Author SHA1 Message Date
9eb197f754 executor: remove the old evaluate logic of stream agg (#7251) 2018-08-03 08:34:28 +08:00
H
6287b24f43 expression: handle max_allowed_packet warnings for space function. (#7210) 2018-08-02 12:57:06 +08:00
a37acaf0d4 expression: update wording in comments (#7220) 2018-08-01 16:16:38 +08:00
44a2ad7f0f expression, plan: rename Column.Position to Column.UniqueID (#7218) 2018-08-01 15:44:21 +08:00
e5f26cdeaf types: fix a bug in decimal multiplication (#7208) 2018-07-31 22:15:27 +08:00
42bba991b9 ranger: fix prefix index when charset is UTF-8 (#7194) 2018-07-31 16:14:05 +08:00
c38f567645 expression: handle max_allowed_packet warnings for pad functions (#7171) 2018-07-31 15:12:31 +08:00
343cb849b8 *: fast path point select (#6937) 2018-07-30 18:13:47 +08:00
e907bfc3a7 plan: fix a bug in index join (#7150) 2018-07-30 16:54:11 +08:00
a8012590dc *: fix union result when mix signed/unsigned columns (#7112) 2018-07-30 13:48:44 +08:00
f4f1692fd1 *: remove FromID from expression.Column (#7157) 2018-07-30 11:06:02 +08:00
06021c7cfe remove types.Row interface (#7170) 2018-07-27 13:45:03 +08:00
e3ba021f5a *: make system variable 'group_concat_max_len' work (#7080) 2018-07-26 20:02:56 +08:00
2fba9931c7 *: remove DatumRow (#7165) 2018-07-26 19:42:58 +08:00
ec8fb0d38c *: refine IntColumn <cmp> NonIntConstant (#7108) 2018-07-26 09:40:47 +08:00
3299f860ff *: use chunk.Row instead of types.DatumRow in test files (#7139) 2018-07-24 21:45:33 +08:00
0b5a1251ee expression/aggregation: set PB field type (#7118)
Aggregation expression should set field type in PB.
2018-07-22 12:50:18 +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
eeb08a9372 less type covert call (#7102) 2018-07-19 16:13:49 +08:00
1bf3f3d407 ranger: refine explain format, again (#7041) 2018-07-17 16:47:44 +08:00
9cf670a324 *: cut off duration.fsp in chunk (#7043) 2018-07-17 15:36:27 +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
5f7fc80389 expression, types: fix decimal minus/round/multiple result (#7001) 2018-07-12 00:02:19 +08:00
ab46569a50 executor: refine StreamAggExec when child is empty (#7002) 2018-07-11 14:33:48 +08:00
372a6fc921 plan: refine explain result format (#7011) 2018-07-09 13:55:36 +08:00
73dc86c7e4 aggregation: handle non-integer input for bit related aggregate functions (#6994) 2018-07-06 00:22:37 +08:00
dd37138dc0 *: support parallel hash agg (#6658) 2018-06-29 22:59:47 +08:00
63ef239bae aggregation: fix the wrong result of avg(double) (#6888) 2018-06-29 17:36:27 +08:00
5a5aeb813a expression, plan: no longer call expression.Clone in plan package except ResolveIndices (#6866) 2018-06-29 16:25:26 +08:00
yj
39d00d35aa sqltostr: fix str_to_date('2018-6-14', '%Y-%m-%d') bug (#6919) 2018-06-28 21:38:06 +08:00
a7819c3385 plan: draw relation bewteen operators with indent (#6894) 2018-06-28 13:28:43 +08:00
99aba76c90 *: Make 'IF NOT EXISTS' great again in 'CREATE TABLE IF NOT EXISTS LIKE' syntax (#6896) 2018-06-26 12:24:57 +08:00
35b68b63ac expression, executor: extract expression to ProjExec from AggExec (#6839) 2018-06-22 15:25:44 +08:00
5022b5b2cc expression: fix err code in Regexp()/RegexpBinary() (#6854) 2018-06-19 13:59:29 +08:00
390e08bb87 expression: fix the wrong result of builtin function CONCAT_WS (#6762) 2018-06-12 19:54:40 +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
b812cb517e expression, util: DecodeDecimal return real precision and frac (#6732) 2018-06-08 15:37:32 +08:00
39a8d0eb7a executor: support parallel projection (#6323) 2018-06-07 22:50:54 +08:00
66c41128ca expression: improve constant folding of UDF if & ifnull (#6677) 2018-06-07 11:38:57 +08:00
5efab55a27 expression: Do not wrap a 'CAST As JSON' when input is already a JSON (#6678) 2018-06-07 11:10:50 +08:00
8a326cae76 expression, util: handle err instead of panic in EncodeDecimal (#6758) 2018-06-05 19:38:30 +08:00
91493c9c31 expression: push builtin function IS_TRUE/IS_FALSE to TiKV (#6751) 2018-06-05 12:38:46 +08:00
7a97f6ab72 expression: add Partial1Mode/Partial2Mode/DedupMode for AggFunctionMode (#6743) 2018-06-05 11:37:55 +08:00
30ff743f32 expression: push builtin function FLOOR down to TiKV (#6736) 2018-06-04 20:28:30 +08:00
1327ebbf96 ddl: year type should not has unsigned flag (#6745) 2018-06-04 18:38:17 +08:00
941f1185b3 expression: push ABS to tikv (#6571) 2018-06-02 22:36:35 +08:00
46da21b5c1 *: support select tidb_is_ddl_owner, to figure out whether tidb instance is ddl owner (#6682) 2018-06-01 17:56:44 +08:00
cbbb64a82f expression:fix cast decimal to decimal side affect (#6723)
when we update two decimal column a into b with cast truncate, we must confirm a not change.but now decimal to decimal cast has side affect make a changed.

so, we fix it with a copy before cast.
2018-06-01 14:39:40 +08:00
c5f9740ed7 expression: fix err message of ErrOverflow in IntDivideDecimal (#6683) 2018-05-31 15:21:41 +08:00
bd28eb0dea revert pr 6621 (#6690) 2018-05-30 17:35:15 +08:00