GitHub user wuchong opened a pull request:

    https://github.com/apache/flink/pull/2102

    [FLINK-4068] [tableAPI] Move constant computations out of code-generated

    The `ReduceExpressionsRule` rule can reduce constant expressions and 
replacing them with the corresponding constant.  We have 
`ReduceExpressionsRule.CALC_INSTANCE` in both `DATASET_OPT_RULES` and 
`DATASET_OPT_RULES`, but it dose not take effect. Because it require the 
planner have an executor to evaluate the constant expressions. This PR does 
this, and resolve FLINK-4068.
    
    And some tests added.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/wuchong/flink FLINK-4068

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/2102.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2102
    
----
commit 786653b7be085c1e80481137fed3d47c5da2357a
Author: Jark Wu <wuchong...@alibaba-inc.com>
Date:   2016-06-15T09:19:35Z

    [FLINK-4068] [tableAPI] Move constant computations out of code-generated  
functions.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to