You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Timo Walther (JIRA)" <ji...@apache.org> on 2016/07/04 15:04:11 UTC

[jira] [Resolved] (FLINK-4109) Change the name of ternary condition operator 'eval' to '?'

     [ https://issues.apache.org/jira/browse/FLINK-4109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timo Walther resolved FLINK-4109.
---------------------------------
    Resolution: Fixed

Fixed in bf6df12d81e721d6a42caf5d9682baf230bbabfb.

> Change the name of ternary condition operator  'eval' to  '?'  
> ---------------------------------------------------------------
>
>                 Key: FLINK-4109
>                 URL: https://issues.apache.org/jira/browse/FLINK-4109
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table API & SQL
>    Affects Versions: 1.1.0
>            Reporter: Jark Wu
>            Assignee: Jark Wu
>             Fix For: 1.1.0
>
>
> The ternary condition operator in Table API is named {{eval}}, for example: {{(42 > 5).eval("A", "B")}} leads to "A".  IMO, the eval function is not well understood. Instead the "?" is a better choice I think, which is used in Java for condition operator. 
> It will be clearer and more literal understood, e.g.
> {{(42 > 5).?("A", "B")}} or {{(42 > 5) ? ("A", "B")}}
> If it make sense, I will pull a request.



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