Commit Graph

288 Commits

Author SHA1 Message Date
e3597b6548 Add Datum.IsNull() fucntion (#1298)
Add IsNull function for Datum to simplify null check.
2016-06-07 23:35:25 +08:00
10359b0052 rewrite executor. (#1294)
* rewrite executor.
2016-06-07 20:32:15 +08:00
f9c31d9130 Hanfei/rewrite plan (#1272) 2016-06-01 13:12:55 +08:00
043ebd5ec8 *: Refactor package organization
1. Move evaluator from optimizer to root dir.
2. Move builtin from expression to evaluator.
3. Remove expression package.
2016-03-02 13:48:22 +08:00
xia
766365ea06 expression: update error log and remove ExprEvalArgCtx 2016-03-02 13:15:24 +08:00
xia
f3576b6b8d Merge branch 'master' into zimuxia/builtin-ctx
Conflicts:
	expression/builtin/groupby.go
2016-03-02 12:12:29 +08:00
xia
5974e84b1b expression: context.Context instead of map[interface{}]interface{} 2016-03-02 11:46:15 +08:00
192b6bf5be Merge branch 'master' into coocood/remove-aggr-builtin 2016-03-02 11:07:23 +08:00
28a5befd7f expression/builtin: remove obsolete aggregate function. 2016-03-02 10:58:34 +08:00
e71e25e31c util/types: new Compare implementation with Datum. 2016-03-02 10:22:21 +08:00
d9f98132ee ast: introduce 'Datum'
Datum is a value box intended to replace 'interface{}' for better performance and easier to use.
2016-03-01 10:54:59 +08:00
38f275319d Merge remote-tracking branch 'origin/master' into zxylvlp/addAStrcmpBuildin 2016-02-29 15:48:06 +08:00
431879e287 buildinFunc: add a strcmp function
Add a function needed in https://github.com/pingcap/tidb/issues/310 .
2016-02-29 15:43:56 +08:00
68eb8e567e *: remove old code 2016-02-29 11:40:32 +08:00
f0326086aa parser/coldef: remove dependency on expression. 2016-02-17 14:12:08 +08:00
2c5bfaebb0 builtin: add version() 2016-01-10 14:46:47 +00:00
b607c8504b builtin: add time function dayname()
add builtin time function dayname()
2016-01-06 20:11:31 +08:00
e45c31b89d Merge pull request #754 from hhkbp2/complete-adddate,subdate-functions
add ast evaluation for date arith
2015-12-29 14:35:00 +08:00
405e6c57d4 add ast evaluation for date arith 2015-12-29 11:42:02 +08:00
0b99e0440b *: Move variable errors to sessionctx/variable 2015-12-24 15:27:41 +08:00
cfe157f93f *: Unify session ID and connection ID
This is for Github issue #722.

1. CONNECTION_ID now can get the real id generate at server side (rather than a session id).

2. Keep session id generation untouched to ensure minimal interface change.
2015-12-21 23:03:39 +08:00
9b1a047f5b Merge pull request #756 from sllt/master
parser: support built-in function pow
2015-12-21 16:26:44 +08:00
33d71ad3b0 Merge remote-tracking branch 'remotes/master' 2015-12-21 13:39:49 +08:00
5d9e7bb4fc fix built-in/pow test 2015-12-21 13:30:01 +08:00
0539de5252 built-in/pow add test in parser and delete bultinPower function 2015-12-21 13:02:58 +08:00
01ea0ab60f Merge branch 'master' into check-args-num 2015-12-21 11:50:32 +08:00
a5b5fd67fa evaluator: Check function call min and max arguments in new evaluator.
For github issue #758.
2015-12-20 23:17:17 +08:00
0b70b41cfe builtin/time: fix one bug in function mapping
The max arg should be 1, which means accept one argument.
2015-12-20 19:31:23 +08:00
7822670132 builtin/time: Use mysql.Duration instead of mysql.Time and add length check 2015-12-20 16:47:10 +08:00
8d938f32ab builtin/time: Add tests for the fsp argument in builtinCurrentTime() 2015-12-20 14:21:58 +08:00
8d0bf06cd5 builtin/time: Add tests in parser and support the fsp argument 2015-12-20 13:34:39 +08:00
218457791c builtin/time: Add tests for CURRENT_TIME(), CURTIME() 2015-12-20 11:07:51 +08:00
8a0a7544bd parser: support built-in function pow 2015-12-20 00:52:20 +08:00
c01879ba2e parser: support built-in function pow 2015-12-19 23:51:04 +08:00
1b0c2e38cf builtin/time: support CURRENT_TIME(), CURTIME()
For github issue #236.
2015-12-19 22:29:13 +08:00
1e1ef8a0bd *: Support connection_id()
Fix: https://github.com/pingcap/tidb/issues/715
2015-12-14 14:40:55 +08:00
d44db8b272 Merge pull request #651 from pingcap/coocood/new-plan
optimizer, executor: Use new plan for simple select statement.
2015-12-09 17:37:26 +08:00
a54b712137 expression: remove unnecessary todo comment. 2015-12-05 20:09:35 +08:00
3ba316fe55 optimizer, executor: use index range 2015-11-25 21:44:55 +08:00
242444b182 Merge branch 'master' into coocood/new-plan 2015-11-24 14:17:27 +08:00
d8ae7c1e36 *: Make go vet happy 2015-11-23 13:19:12 +08:00
49bc1c8d9c executor: fix bugs, pass more tests. 2015-11-18 17:19:43 +08:00
9af46bbdb6 Merge branch 'master' into coocood/new-plan 2015-11-18 10:06:35 +08:00
c01af56fc3 executor, optimizer: new executor and optimizer implementation 2015-11-13 23:24:10 +08:00
xia
415085546b Merge branch 'master' into zimuxia/issue525
Conflicts:
	expression/variable.go
	parser/scanner.l
	plan/plans/show.go
	plan/plans/show_test.go
	stmt/stmts/set.go
2015-11-09 20:22:05 +08:00
xia
f35ec29b6c *: rename GlobalSysVarAccessor to GlobalVarAccessor,
use GetSysVar and GetStatusVar.
2015-11-09 20:02:49 +08:00
b803cabc2f Merge pull request #544 from pingcap/shenli/refactor-globalvar
*: Use Bind/Get global sysvar accessor instead of type assertion
2015-11-09 16:55:03 +08:00
fc980462a0 Merge pull request #524 from pingcap/zimuxia/issue-419
parser: Support ADDDATE and SUBDATE function
2015-11-09 13:25:17 +08:00
7d49f39f2e *: Use Bind/Get global sysvar accessor instead of type assertion 2015-11-09 13:02:30 +08:00
8c99975ac4 *: fix mybatis test error. 2015-11-07 16:57:10 +08:00