[ 
https://issues.apache.org/jira/browse/FLINK-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15035332#comment-15035332
 ] 

ASF GitHub Bot commented on FLINK-3098:
---------------------------------------

GitHub user ChengXiangLi opened a pull request:

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

    [FLINK-3098] [Table API] Cast Date to Long throw compile error.

    While cast Date to Long, the generated code has compile error.

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

    $ git pull https://github.com/ChengXiangLi/flink FLINK-3098

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

    https://github.com/apache/flink/pull/1431.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 #1431
    
----
commit b8796eda8c47863b711846fc6c0e159b80cedde0
Author: chengxiang li <chengxiang...@intel.com>
Date:   2015-12-02T06:04:55Z

    [FLINK-3098] [Table API] Cast Data to Long throw compile error.

----


> Cast from Date to Long throw compile error.
> -------------------------------------------
>
>                 Key: FLINK-3098
>                 URL: https://issues.apache.org/jira/browse/FLINK-3098
>             Project: Flink
>          Issue Type: Bug
>          Components: Table API
>    Affects Versions: 0.10.1
>            Reporter: Chengxiang Li
>            Assignee: Chengxiang Li
>
> While cast Date to Long in Table API, the generated code throw comile error. 
> Looks like:
> {code}
> Caused by: org.codehaus.commons.compiler.CompileException: Line 33, Column 
> 23: Expression "result$5" is not an rvalue
>       at 
> org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java:10062)
>       at 
> org.codehaus.janino.UnitCompiler.toRvalueOrCompileException(UnitCompiler.java:5960)
>       at 
> org.codehaus.janino.UnitCompiler.compileContext2(UnitCompiler.java:3172)
>       at org.codehaus.janino.UnitCompiler.access$5400(UnitCompiler.java:182)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to