Commit Graph

1029 Commits

Author SHA1 Message Date
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
b5fa023caa util: Fix range construction for in predicate (#6667) 2018-05-30 13:36:13 +08:00
9150b0f25e executor, expression: fix a panic of MAX/MIN (#6632) 2018-05-24 18:28:32 +08:00
067daa4ff7 expression: push CEIL down to TiKV (#6607) 2018-05-24 16:12:58 +08:00
87ce884b2e *:check max/min timestamp bound with timezone aware (#6581)
- mytime: max/min configure with UTC tz, convert to local tz during process starting, convert it to session tz before checking bound.
- time: so `check()`/`add()` need force pass `StatementContext` parameter.
- builtin_time: pass `StatementContext` from `b.ctx.sessionVars` into check/add.
- dump: also set timezone for StatementContext with UTC.
- *_test/mock: fix test case, make mock context with stmt TimeZone.
- add testcase for checkTimestamp and mytime convert timezone.
2018-05-24 15:27:38 +08:00
e705c18d19 expression: refine compare timestamp col with string constant (#6621) 2018-05-24 10:13:06 +08:00
426ae62f9e expression: fix wrong result of floor (#6620) 2018-05-23 14:42:42 +08:00
4ea89b3505 expression: Fix the decimal fraction of DIV (#6590) 2018-05-23 11:42:37 +08:00
9f7fb424ef expression: fix wrong result of CEIL integer (#6606) 2018-05-23 10:56:38 +08:00
93f27dc50e expression: fix wrong result of CEIL (#6598) 2018-05-22 13:39:04 +08:00
b32d6cf712 expression: set pb code for builtinArithmeticDivideDecimalSig (#6583) 2018-05-20 21:30:49 +08:00
c0dea7e936 *: move leak check from each test to suite (#6541) 2018-05-15 20:05:03 +08:00
b3bb5e8c8f *: support warnings when using coprocessor streaming (#6544) 2018-05-13 22:10:58 -05:00
877d0d4d3d *: fix a bug occurred when insert into time column (#6451)
* *: fix a bug when insert decimal or decimal-like string into time col
2018-05-09 10:52:30 +08:00
aa76a6eeba plan, executor: correlated column can be pushed down. (#6403) 2018-05-07 19:43:02 +08:00
357d5df66b remove useless alias (#6473) 2018-05-05 22:36:54 +08:00
9fc856297c expression: support simple expression rewriter (#6432) 2018-05-04 09:20:21 +08:00
5725b43c83 *: remove useless ExprType (#6313) 2018-04-18 18:56:43 +08:00
ffd47ec3b5 expression: refactor scalarFuncToPBExpr (#6290) 2018-04-18 13:33:48 +08:00
860e808e07 expression: remove mockKVClient (#6299) 2018-04-17 16:11:58 +08:00
f21483e6ed expression: add Clone() for builtinFunc 2018-04-11 10:00:19 -05:00
922ba2464c *: make explicit timestamp on (#6238) 2018-04-11 15:36:26 +08:00
17c737b250 expression: optimize the Clone of Constant. (#6262) 2018-04-10 19:47:24 +08:00
76932395c3 expression: make inferring of decimal for unix_timestamp be more consistent with MySQL (#6233) 2018-04-09 11:40:24 +08:00
313d9d3660 parser: fix the result of cast (0x10 as binary(2)). (#6211) 2018-04-03 21:44:36 +08:00
67f920a650 executor: Improve the aesthetics of code review (#6137) 2018-03-31 17:06:19 +08:00