Commit Graph

128 Commits

Author SHA1 Message Date
c16855d3ec expression: avoid using datum in HashCode(). (#5911) 2018-02-27 18:58:45 +08:00
cd63332ebf expression, plan: extract the same part from DNF's leaves. (#5831) 2018-02-26 16:03:05 +08:00
12c87929b8 *:fix some golint && ineffassign && misspell to improve GoReport Result (#5867) 2018-02-23 19:31:05 +08:00
4e1a114e68 *: move package context to sessionctx (#5890) 2018-02-22 18:03:38 +08:00
26d4887c55 plan: fix a bug when alter table drop column meets insert (#5790) 2018-02-06 18:35:31 +08:00
fc6376981d *: remove GetSessionVars() in expression evaluation (#5683) 2018-01-22 11:04:32 +08:00
ecbd60c3ff *: add arguement StatementContext to Encode functions. (#5566) 2018-01-06 17:31:08 +08:00
07dc46d3cb expression: refactor hybrid type expressions (#5550) 2018-01-06 11:04:50 +08:00
970e5b5684 *: replace JSON with BinaryJSON (#5460) 2017-12-21 15:20:17 +08:00
ced6efc7f4 expression: support vectorized execution of expressions (#5184) 2017-11-22 23:41:36 +08:00
55b8f9f1ee executor, expression: support Chunk in ProjectionExec (#5178) 2017-11-22 13:34:03 +08:00
8b15cb52b7 *: move StatementContext to its own package. (#5177) 2017-11-22 00:11:14 +08:00
5c76863a79 plan, expression: remove useless error return (#5085) 2017-11-13 18:40:58 +08:00
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -05:00
ad1c532ea5 *: remove unused package and functions (#5003)
* *: remove unused package and functions
2017-11-04 03:36:25 -05:00
e96321b3f1 ranger: simple improvement for range calc for pk. (#4767) 2017-10-24 20:21:23 +08:00
0306bb0070 tidb: support a plan cache for prepared statements (#3956)
* tidb: support a plan cache for prepared statements
2017-10-24 00:55:51 -05:00
ed7f68ca9b *: Add Row interface (#4859) 2017-10-23 11:36:28 +08:00
64bc8cb6cb expression: remove "self" field in "baseBuiltinFunc" completely (#4766)
* expression: remove "self" field in "baseBuiltinFunc" completely

* address comment
2017-10-13 04:55:25 -05:00
3e1d036336 *: log the caller of "terror.Log()" (#4729) 2017-10-10 11:26:43 +08:00
e11c4fbaad expression, plan: improve fold constant (#4721)
* improve fold constant

* remove useless code

* remove useless argument

* address comment
2017-10-09 17:43:13 +08:00
9c2ea17722 *: enforce errcheck in Makefile (#4724)
checks all errors and enable errcheck in Makefile

Fixes https://github.com/pingcap/tidb/issues/4668
2017-10-09 17:16:10 +08:00
b4ad894b0a expression, plan: do come code clean and make golint happy (#4681) 2017-09-29 10:35:47 +08:00
1c4143e9e4 expression, types: remove the useage of "evalExprToXXX" functions (#4666) 2017-09-27 23:42:00 +08:00
a6756a4eee *: make insert with calculated value behave the same as MySQL. (#4603) 2017-09-27 19:59:31 +08:00
baee1bb864 expression, types, plan: remove the usage of "TypeClass" completely (#4654) 2017-09-27 12:39:44 +08:00
f89db5b6ec expression, types: export "evalTp" to "EvalType" and move it to package "types" (#4626)
* expression, types: export "evalTp" to "EvalType" and move it to package "types"

* add source file

* change "ETJSON" to "ETJson"
2017-09-26 11:25:27 +08:00
069cc8b222 expression: open new expression framework by default (#4595) 2017-09-22 15:29:42 +08:00
3c02f6bcdb expression, plan: remove typeinfer.go since we infer all types in expression rewrite phrase (#4536) 2017-09-22 13:22:46 +08:00
a12306c45e expression: remove the usage of "TypeClass" in "expression.go" (#4571) 2017-09-21 12:43:37 +08:00
a8b09d2761 expression: reorganize error messages for non-existent functions (#4582) 2017-09-21 12:14:50 +08:00
c899e5bb16 expression: rewrite builtin function: MOD (#4407) 2017-09-21 09:48:51 +08:00
c9e17e8317 plan: wrap CAST on generation expressions. (#4501)
* plan: wrap CAST on generation expressions.
2017-09-20 19:49:34 +08:00
2439f173dc expression: move "Constant" to a standalone source file (#4583) 2017-09-20 15:02:30 +08:00
49e9b63a58 remove redundant 'FoldConstant' call in function 'EvaluateExprWithNull' (#4534) 2017-09-15 15:24:20 +08:00
296f09438d expression: rewrite builtin func values (#4491) 2017-09-12 11:13:49 +08:00
ebfcd7d90a expression: rewrite builtin function: CONVERT (#4417) 2017-09-08 11:08:39 +08:00
fc209cb1df *: rewrite hex and bit literals (#4415) 2017-09-07 16:28:24 +08:00
55bbc41069 expression: adjust getFunction context.Context param position (#4400) 2017-09-01 16:03:19 +08:00
f02a615bed expression: remove useless error return (#4347) 2017-08-28 20:34:30 +08:00
024d4dde20 expression: fix a bug when datum.kind is not consistent with expression.type (#4269) 2017-08-21 20:38:46 +08:00
6733b6f75b expression: rewrite builtin function: NULLIF (#4170)
* rewrite nullif() to if()
2017-08-15 17:19:39 +08:00
56cb978587 expression, plan: rewrite builtin function: IF (#4137) 2017-08-11 19:43:06 +08:00
c51d0f57ed *: support JSON in new expression architecture (#4089) 2017-08-10 15:56:53 +08:00
5077f46036 expression: rewrite builtin function: COMPRESS, UNCOMPRESS, UNCOMPRESSED_LENGTH (#4095) 2017-08-09 20:56:53 +08:00
f0fd27c5b5 expression: rewrite builtin function: SLEEP (#4096) 2017-08-09 19:37:17 +08:00
3c11ac5128 *: fix race with atomic global variables. (#4076)
* fix race.
2017-08-08 14:30:04 +08:00
85b0155f85 expression: fix EvaluateExprWithNull when meet cast(#3873) (#3875) 2017-07-25 21:16:34 +08:00
71773cf33c *: change "AndAnd", "OrOr" to "LogicAnd", "LogicOr" respectively (#3874) 2017-07-25 15:53:02 +08:00
8ebe4c2549 plan, executor, expression: refactor explain (#3809) 2017-07-25 14:12:48 +08:00