f5a6c962b5
*: Change ctx.Value from interface{} to Datum ( #1494 )
2016-07-25 10:42:54 +08:00
432df5458b
*: aggregate related code cleanup ( #1488 )
2016-07-23 14:29:52 +08:00
8749945b0c
*: add builtin function greatest ( #1463 )
2016-07-20 11:32:14 +08:00
7654b6b5d5
*: Support sleep function ( #1457 )
...
* *: support sleep function
* evaluator: add SQL mode judgement
2016-07-16 13:48:45 +08:00
d4f85c8138
Add get_lock() and key_column_usage table ( #1437 )
...
Parsed but ignored. This is used for Ruby's activerecord migrations.
2016-07-13 10:57:05 +08:00
e35c7ce6eb
support nested subquery and fix bug of setting variable ( #1412 )
2016-07-09 20:25:51 +08:00
db4cdcfaec
parser: reduce memory allocation ( #1408 )
2016-07-07 16:42:30 +08:00
452637dccb
*: Convert RegexpExpr to ScalarFuntion and check the arguments length of builtin functions ( #1388 )
...
* *: convert RegexpExpr to ScalarFuntion and add check arguments length
2016-07-05 12:37:23 +08:00
0450ba0b47
*: unify "See url" format ( #1391 )
...
* *: unify "See url" format
2016-07-05 11:21:10 +08:00
5520e266dc
*: Convert CaseExpr to ScalarFunction and clean up ( #1377 )
...
* *: support CaseExpr to ScalarFunction and tiny clean up
2016-07-04 15:15:44 +08:00
c72917d6e8
support cast and change the name of expression select field. ( #1373 )
2016-07-04 14:27:07 +08:00
01a42dfb8c
*: Convert expression to pbExpr and implement builtin function ( #1358 )
...
* *: convert expression to pbExpr and implement the builtin function
2016-06-30 17:16:48 +08:00
234d0be5de
*: Support build range, support betweenExpr, inExpr and likeExpr convert to scalarFunc ( #1344 )
...
* *: support build range, support betweenExpr, inExpr and likeExpr convert
to scalarFunc
2016-06-27 20:30:16 +08:00
0eac76eb22
support row expression. ( #1349 )
...
support row function and row expression.
2016-06-27 16:03:51 +08:00
b3bd0dce4d
*: add builtin string function SPACE ( #1332 )
2016-06-21 15:45:26 +08:00
a4ce312d4b
*: Push down where in newTableScan ( #1320 )
...
* *: tiny clean up
* *: push down where
2016-06-15 19:48:08 +08:00
004500171e
*: Refactor datum arithmetic codes and support Add/Div in xeval. ( #1311 )
...
Prepare for aggregate function sum/avg.
2016-06-13 11:24:07 +08:00
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
d9569a6801
*: Support date_format ( #1295 )
...
* *: support date_format
* evaluator: update yearweek function
2016-06-06 18:49:06 +08:00
0373895334
*: Support time ( #1282 )
...
* *: support time
2016-06-02 10:48:09 +08:00
75f089d056
util/types: clean up, removed unused code. ( #1281 )
2016-06-02 10:42:36 +08:00
61532d7c4e
*: Support monthname ( #1279 )
...
* *: support monthname
2016-06-01 14:02:53 +08:00
f9c31d9130
Hanfei/rewrite plan ( #1272 )
2016-06-01 13:12:55 +08:00
f09574d826
*: support sql mode ( #1263 )
2016-05-30 13:16:41 +08:00
86fe54dadc
*: Fix issue 1118 ( #1259 )
...
* *: fix issue 1118
2016-05-26 12:49:43 +08:00
228f1d7026
support hash join in new plan ( #1234 )
...
* support hash join.
* fix some errors
* add test for predicate push down
* change substitutor...
* add bench mark
* change comment
* fix bug.
2016-05-19 15:43:16 +08:00
55ed68ca6c
add builtin-reverse func ( #1224 )
2016-05-13 20:53:55 +08:00
2e355f3749
*: Fix issue#1114 ( #1231 )
...
* *: supprot assignment
* *: fix issue 1114
2016-05-13 11:26:26 +08:00
0841dbef9b
*: Support builtin function round(X), round(X, D) ( #1208 )
...
Support builtin function round(X), round(X, D)
2016-05-07 13:38:02 +08:00
887f819a41
*: Support Mod(N, M) ( #1194 )
...
*: Support Mod(N, M)
Fix: https://github.com/pingcap/tidb/issues/1193
2016-05-04 10:26:22 +08:00
3671f3958f
xapi: support IN expression push down. ( #1147 )
...
* xapi: support IN expression push down.
2016-04-25 19:50:33 +08:00
4ced2f7e10
*: implement some other builtin functions ( #1137 )
...
Support ISNULL(), LTRIM(), RTRIM(), LCASE() and UCASE().
Add alias for LOWER() and UPPER().
2016-04-23 21:04:26 +08:00
3b25069f84
evaluator: avoid evaluate independent subquery multiple times. ( #1144 )
...
* evaluator: avoid evaluate independent subquery multiple times.
* ast: rename UseOuterContext to Correlated.
2016-04-22 12:51:18 +08:00
d78e4044cc
*: fix misspells ( #1143 )
2016-04-22 11:30:37 +08:00
041dfd97c1
executor: evaluate subquery before executing outer query. ( #1133 )
...
* executor: evaluate subquery before executing outer query.
So outer query can push down subquery values.
* evaluator: extract a function to evaluate subquery.
* evaluator: add comments on exported function.
2016-04-21 21:51:39 +08:00
c26dfd54e4
executor: Change interface to datum in executor. ( #1103 )
...
Change interface to datum in executor.
2016-04-20 09:52:23 +08:00
cd3d424252
evaluator: partially fix issue #1098 ( #1100 )
...
Fix the incorrect behavior of `substring` function, multi-byte charset still hasn't been supported.
2016-04-17 00:43:30 +08:00
8c164bc078
evaluator,parser: support ASCII(). ( #309 ) ( #1083 )
...
* evaluator: add a builtin function wanted by #310 .
* parser: update parser for ASCII().
2016-04-14 01:53:50 -05:00
bebacf4f3a
evaluator: just one time eval ( #1062 )
...
* evaluator: just one time eval
2016-04-12 12:34:27 +08:00
08034540f0
*: Add leak test
...
* *: add leak test and tiny clean up
* *: unify test format and add leak test
Conflicts:
store/localstore/compactor_test.go
mysql/error_test.go
*: add leak test
2016-04-07 20:53:45 +08:00
d01d516105
evaluator, parser: support UTC_DATE()
...
* evaluator, parser: support UTC_DATE()
Fix issue: #236 .
2016-04-05 21:25:04 +08:00
86f4459543
util: Reserve mysql.Time change.
2016-03-31 18:49:17 +08:00
afdf9a4ef6
Change mysql.Time to ptr in datum.
...
In this way, we can save the cost of the alloc of mysql.Time in interface.
In the future, we will change all mysql.Time to ptr to save the cost of copy mysql.Time struct.
2016-03-29 18:42:16 +08:00
49471419a8
evaluator: fix a bug in checkInList.
...
Fix a bug in checkInList.
2016-03-25 14:38:17 +08:00
419f244031
evaluator: change interface to datum in evaluator package.
...
Change the remaining string functions.
2016-03-25 12:01:58 +08:00
5fd28ea1b2
*: Fix go vet shadow
2016-03-23 10:32:29 +08:00
2ef0c56ccc
Make some change.
2016-03-22 16:12:07 +08:00
abeea90449
evaluator: change the remaining string functions.
...
Change the remaining string functions.
2016-03-22 14:04:23 +08:00
1ba2f08a71
evaluator: change concat_ws, left, length, lower, repeat, upper.
...
Change the interfaces of concat_ws, left, length, lower, repeat, upper to datums.
2016-03-21 20:09:54 +08:00