[
https://issues.apache.org/jira/browse/FLINK-4070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15335660#comment-15335660
]
ASF GitHub Bot commented on FLINK-4070:
---------------------------------------
GitHub user wuchong opened a pull request:
https://github.com/apache/flink/pull/2120
[FLINK-4070] [tableApi] Support literals on left side of binary expre…
The Table API does not support literals on left side of expressions like
`+,_,*,/,%,>,< `. Because there is already such method in Int class, scala
compiler would not search for implicit conversion.
So I add a function `toExpr` to Expression, now we can use 12.toExpr % 'f0.
It is a useful feature in some cases.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/wuchong/flink FLINK-4070
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/2120.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 #2120
----
commit 8530408554aa6929a54be3d03b2b33f28bd01fd1
Author: Jark Wu <[email protected]>
Date: 2016-06-17T03:39:21Z
[FLINK-4070] [tableApi] Support literals on left side of binary expressions
----
> Support literals on left side of binary expressions
> ---------------------------------------------------
>
> Key: FLINK-4070
> URL: https://issues.apache.org/jira/browse/FLINK-4070
> Project: Flink
> Issue Type: Improvement
> Components: Table API & SQL
> Reporter: Timo Walther
> Assignee: Jark Wu
> Priority: Minor
>
> The Table API does not support binary expressions like {{12 < 'f0}} in Scala
> DSL where the left side is a literal. Maybe this can be solved by implicits
> or at least by a {{12.toExpr}} method.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)