Commit Graph

1204 Commits

Author SHA1 Message Date
52b7bfda0e types: use switch table to save memory (#9650) 2019-03-12 22:04:22 +08:00
6e8cd3c7dd executor: support window function nth_value (#9596) 2019-03-12 00:42:37 +08:00
f0aca29fff executor: support window function cume_dist (#9619) 2019-03-11 19:30:54 +08:00
35829101ae expression: support bit for addtime & subtime (#6316) 2019-03-11 16:50:35 +08:00
a968f91fc9 expression: remove useless functin fieldTypeFromPB (#9629) 2019-03-11 12:10:47 +08:00
7072052316 expression,types: improve str_to_date builtin function compatibility (#9617) 2019-03-09 15:15:31 +08:00
247777d870 executor: support window function first_value and last_value (#9560) 2019-03-06 21:43:14 +08:00
2b646cb58b planner, executor: handle default frame for window functions (#9544) 2019-03-06 19:37:30 +08:00
ae91405e61 sessionctx/variable: fix panic when set variable='' (#9533) 2019-03-04 12:28:05 +08:00
560e8cfe57 *: sleep 0 when retry whole transaction (#9454) 2019-03-02 13:16:28 +08:00
2433e28d8d *: fix ineffectual assignments and misspellings (#9481) 2019-02-28 19:25:07 +08:00
9259785455 executor: support window function rank and dense_rank (#9500) 2019-02-28 14:44:08 +08:00
9da174902a expression: fix timezone for timestamp constant when converting expression to pb (#9473) 2019-02-27 10:41:28 +08:00
a59a5f41e1 planner, executor: support range framed window functions (#9450) 2019-02-27 10:07:28 +08:00
5a283a98dd plan/executor: make semi joins null and empty aware (#9051) 2019-02-25 15:42:38 +08:00
2f3842a8da executor, planner: refine merge join compare methods to avoid some rare cases (#9390) 2019-02-25 14:19:26 +08:00
8d4db9fb0e expression: refactor builtin function RAND to be compatible with MySQL (#9387) 2019-02-22 17:22:09 +08:00
38a453d29c expression: should not pass nil pointer to HashCode() function (#9324) 2019-02-21 21:18:03 +08:00
0ffb2f612c expression: refactor constant folding for IF&IFNULL (#9094) 2019-02-19 11:41:59 +08:00
bc0e70dc5c planner/core: implement skyline pruning (#9337) 2019-02-19 11:19:30 +08:00
ed7bb00417 planner, expression: support builtin function NAME_CONST (#9261) 2019-02-19 10:02:46 +08:00
cc085693f1 executor: support window function row number (#9098) 2019-02-18 17:14:37 +08:00
0081e17b02 expression, planner: support builtin function benchmark (#9252) 2019-02-13 19:53:28 +08:00
469fa877d6 util/hack: define a MutableString type for function hack.String (#9230) 2019-02-12 12:30:40 +08:00
84750e8550 expression: handle ENUM in builtin function Values() (#9225) 2019-02-12 11:48:55 +08:00
0b363f1712 expression: add builtin function JSON_QUOTE (#7832) 2019-02-12 10:57:09 +08:00
eb2578bc42 expression: fix date_add interval month,year diffs from mysql (#8988) 2019-02-11 19:52:58 +08:00
e1667966ac planner: fix assertion failure on LogicalJoin.EqualConditions (#9066) 2019-02-11 11:45:15 +08:00
2b114f42d2 expression: fix some typos in the comments (#9258) 2019-02-10 10:47:46 +08:00
ee1f79e2fc expression: fix a bug in baseFuncDesc.clone() (#9254) 2019-02-10 10:35:46 +08:00
3d614e0965 planner: enable function any_value in aggregation if ONLY_FULL_GROUP_BY is set (#9255) 2019-02-10 10:03:40 +08:00
6398788f6b expression: function format incompatible (#9182) 2019-01-31 16:39:21 +08:00
b3bdc5d797 expression: handle Float32 for builtin function Values() (#9215) 2019-01-30 12:13:00 +08:00
09a5c8028e plan: derive col is not null from col op col conditions (#8603)
Check whether the `op` condition is null rejected, if yes, derive
`col is not null` for both sides of inner join, and for inner side
of outer join.

Also, remove duplicate conditions before pushing them down. Check
if the condition is mutable before removing duplicates.

For AntiSemiJoin, AntiLeftOuterSemiJoin and LeftOuterSemiJoin, do
not generate new `is not null` conditions.
2019-01-30 10:53:46 +08:00
bf5a0b4e6d expression: fix precision when casting float to string (#9137) 2019-01-29 09:59:16 +08:00
H
6a06977dd1 plan: rewrite exact like expression to equal condition (#9071) 2019-01-28 19:12:30 +08:00
6dcba1fd90 expression: support JSON for builtin function COALESCE (#9087) 2019-01-28 11:33:57 +08:00
36176be874 *: improve syntax error code & message compatibility (#9103) 2019-01-23 10:46:29 +08:00
b339c02831 planner,expression: use constraint propagation in partition pruning (#8885) 2019-01-17 11:09:41 +08:00
ec833bc4d2 *: fix some lints produced by golangci-lint (#8999) 2019-01-16 16:44:49 +08:00
3835bef7ae executor: support window func for aggregate without frame clause (#8899) 2019-01-15 15:23:17 +08:00
dca815c1c5 expression: return error when doing ResolveIndices (#8929) 2019-01-15 14:34:06 +08:00
30e8c8db40 expression:add support for JSON_MERGE_PRESERVE (#8931) 2019-01-11 15:03:57 +08:00
786a9d54a3 expression,util/encrypt: add support for AES OFB mode (#8605) 2019-01-11 14:22:57 +08:00
68ddb7f0e6 *: fix the lower bound when converting numbers less than 0 to unsigned integers (#8544) 2019-01-10 16:04:07 +08:00
0bc0f7d95b expression: throw "too big precision" error for CAST(AS TIME) (#8907) 2019-01-09 19:44:35 +08:00
39e1dfe4c2 parser: better error message #133 (#8950) 2019-01-07 12:14:46 +08:00
084aa5a030 config: add initChunkSize config item, make chunk start with 32 (#8480) 2019-01-07 11:14:47 +08:00
0c75c43010 fix typo (#8943) 2019-01-05 09:05:52 +08:00
3708a8306c expression: constraint propagate for '>' and monotonous function (#8640) 2019-01-04 14:06:51 +08:00