You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Reynold Xin (JIRA)" <ji...@apache.org> on 2015/05/13 07:03:59 UTC
[jira] [Reopened] (SPARK-7321) Add Column expression for
conditional statements (if, case)
[ https://issues.apache.org/jira/browse/SPARK-7321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Reynold Xin reopened SPARK-7321:
--------------------------------
> Add Column expression for conditional statements (if, case)
> -----------------------------------------------------------
>
> Key: SPARK-7321
> URL: https://issues.apache.org/jira/browse/SPARK-7321
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Reporter: Reynold Xin
> Assignee: Chen Song
> Priority: Critical
> Fix For: 1.4.0
>
>
> A good reference implementation is http://www.jooq.org/doc/3.6/manual-single-page/#case-expressions
> As an example in Python:
> {code}
> when(df.age == 1, "one").when(df.age == 2, "two").otherwise("unknown")
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org