a89fa8a8d3
*: refact insert logic ( #2252 )
2016-12-20 17:38:23 +08:00
507201bd12
plan, expression: add test and remove useless code ( #2271 )
...
* plan: add test for logical_plan_builder
* plan: add test in logical_plan_test
* plan: add test and remove useless code
* plan, expression: move test from plan to expression
Move test for constantFolding and constantPropagation from
plan to expression
* plan: remove useless test
* expression: add test
* expression: address comment
2016-12-19 14:04:00 +08:00
35edefb757
*: rewrite the logic of set. ( #2223 )
2016-12-12 17:54:16 +08:00
74a1c9935d
*: add StatementContext argument to functions. ( #2157 )
...
Add StatementContext argument to more functions where it is needed.
2016-12-02 23:28:11 +08:00
0b828d46f8
*: add context in baseplan, extract constant folder. ( #2135 )
2016-12-01 00:17:55 +08:00
5230f5eabd
variable: define StatementContext. ( #2121 )
...
StatementContext is used to hold statement execution mode and state.
As every computation need this, there are many API changes.
2016-11-29 14:25:38 +08:00
f0db619009
*: refactor constant propagation. ( #2087 )
2016-11-27 16:21:12 +08:00
b19cc75a94
mysql, types: move MyDecimal and Time from 'mysql' to 'types' package. ( #2082 )
...
So we don't need to handle sql mode in 'mysql' package, avoid potential dependency cycle.
2016-11-24 10:50:31 +08:00
3683d5f950
plan & expression: split the logic of column pruning and indices resolving. ( #2051 )
2016-11-23 18:01:27 +08:00
7e041d2cba
expression: let first_row get the first value no matter if it's null ( #2057 )
2016-11-22 16:07:14 +08:00
fdb74960a4
add a new expression type: Correlated Column. ( #1973 )
2016-11-17 12:42:12 +08:00
e17644716d
refactor show clause. ( #1940 )
2016-11-10 11:14:37 +08:00
76f420595b
*:support aggregate function push cross outer join. ( #1899 )
2016-11-01 17:59:12 +08:00
d3279072b7
*: support explain aggregation query. ( #1901 )
2016-10-31 15:33:59 +08:00
82971c4779
plan: support aggregation push down. ( #1886 )
2016-10-31 01:17:21 +08:00
0d49936ef9
expression: fix a bug when checking whether two aggregation functions are same. ( #1852 )
2016-10-20 19:53:09 +08:00
406c5c4094
*: support common aggregation functions elimination. ( #1843 )
2016-10-20 15:58:34 +08:00
b8994bb139
*: Support stream aggregation. ( #1735 )
...
* *: Support stream aggregation.
2016-09-20 17:14:31 +08:00
648bee53b2
add stream agg executor. ( #1730 )
2016-09-18 12:49:57 +08:00
5caa0f5e29
decide push down conditions during plan building phase. ( #1731 )
2016-09-18 10:35:52 +08:00
b99521846f
*: Make golint work and happy. ( #1721 )
2016-09-13 18:11:47 +08:00
6b8e1cdd0a
support constant propagation ( #1652 )
2016-09-07 17:30:24 +08:00
f2d8b3c108
remove New*** from variable name. ( #1644 )
2016-08-29 10:18:45 +08:00
e33587ed47
support explain ( #1632 )
2016-08-26 11:19:23 +08:00
e31b281ee7
*: use new MyDecimal implementation. ( #1611 )
2016-08-22 20:24:39 +08:00
6e878144e5
support UPDATE and DELETE in new plan ( #1582 )
2016-08-19 14:35:39 +08:00
acbfe2394f
add arguments buffer to avoid making new slice frequently. ( #1539 )
2016-08-02 17:20:11 +08:00
da6ceb949b
add constant folding ( #1534 )
2016-08-02 15:45:58 +08:00
9574322317
support join reorder. ( #1522 )
2016-08-01 15:57:47 +08:00
2b4acb0caf
support cbo ( #1498 )
2016-07-27 11:10:52 +08:00
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
c66576ba05
Support aggregate push down in new executor ( #1483 )
...
Support aggregate push down for NewXSeelctTableExec.
2016-07-22 13:15:41 +08:00
883021fbb4
*: tiny clean up ( #1425 )
2016-07-11 18:03:59 +08:00
e35c7ce6eb
support nested subquery and fix bug of setting variable ( #1412 )
2016-07-09 20:25:51 +08:00
257df744bb
fix bugs of insert and subquery ( #1406 )
2016-07-07 17:12:14 +08:00
6ab4cc5877
fix a lot of bugs about agg and having. ( #1395 )
2016-07-06 15:49:53 +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
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
a75f677900
support set variable, prepare and insert stmt. ( #1359 )
2016-06-29 18:26:47 +08:00
0eac76eb22
support row expression. ( #1349 )
...
support row function and row expression.
2016-06-27 16:03:51 +08:00
af7f2a2e89
correct "order by", "having", "group by"s' resolving rules. ( #1326 )
...
resolve order by/ having/ group by correctly.
2016-06-22 11:58:06 +08:00
e051784728
*: Tiny clean up ( #1334 )
...
* *: tiny clean up
2016-06-22 10:59:51 +08:00
5c886455a0
Fix go vet shadow ( #1330 )
...
* Fix go vet shadow
2016-06-18 12:36:17 +08:00
a4ce312d4b
*: Push down where in newTableScan ( #1320 )
...
* *: tiny clean up
* *: push down where
2016-06-15 19:48:08 +08:00
921677399e
Hanfei/apply ( #1318 )
...
add apply operator.
2016-06-15 15:23:05 +08:00
99e3071c42
move position of rewriter. ( #1310 )
2016-06-12 14:43:58 +08:00
241bd7754c
*: rename aggrMap to aggMap and handle error ( #1309 )
2016-06-12 13:52:17 +08:00
9ec42dbc4c
*: Tiny clean up ( #1303 )
...
* *: rename DbName to DBName and fix plan shadows.
2016-06-08 16:33:41 +08:00