[jira] [Assigned] (SPARK-38267) Replace pattern matches on boolean expressions with conditional statements

2022-03-06 Thread Sean R. Owen (Jira)


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

Sean R. Owen reassigned SPARK-38267:


Assignee: Yang Jie

> Replace pattern matches on boolean expressions with conditional statements
> --
>
> Key: SPARK-38267
> URL: https://issues.apache.org/jira/browse/SPARK-38267
> Project: Spark
>  Issue Type: Improvement
>  Components: SQL
>Affects Versions: 3.3.0
>Reporter: Yang Jie
>Assignee: Yang Jie
>Priority: Minor
>
> Before
>  
> {code:java}
> val bool: Boolean
>   bool match {
>     case true => do something when bool is true
>     case false => do something when bool is false
>   } {code}
>  
>  
> After
>  
> {code:java}
> val bool: Boolean
>   if (bool) {     
> do something when bool is true   
>   } else {     
> do something when bool is false   
>   } {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Assigned] (SPARK-38267) Replace pattern matches on boolean expressions with conditional statements

2022-02-20 Thread Apache Spark (Jira)


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

Apache Spark reassigned SPARK-38267:


Assignee: Apache Spark

> Replace pattern matches on boolean expressions with conditional statements
> --
>
> Key: SPARK-38267
> URL: https://issues.apache.org/jira/browse/SPARK-38267
> Project: Spark
>  Issue Type: Improvement
>  Components: SQL
>Affects Versions: 3.3.0
>Reporter: Yang Jie
>Assignee: Apache Spark
>Priority: Minor
>
> Before
>  
> {code:java}
> val bool: Boolean
>   bool match {
>     case true => do something when bool is true
>     case false => do something when bool is false
>   } {code}
>  
>  
> After
>  
> {code:java}
> val bool: Boolean
>   if (bool) {     
> do something when bool is true   
>   } else {     
> do something when bool is false   
>   } {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Assigned] (SPARK-38267) Replace pattern matches on boolean expressions with conditional statements

2022-02-20 Thread Apache Spark (Jira)


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

Apache Spark reassigned SPARK-38267:


Assignee: (was: Apache Spark)

> Replace pattern matches on boolean expressions with conditional statements
> --
>
> Key: SPARK-38267
> URL: https://issues.apache.org/jira/browse/SPARK-38267
> Project: Spark
>  Issue Type: Improvement
>  Components: SQL
>Affects Versions: 3.3.0
>Reporter: Yang Jie
>Priority: Minor
>
> Before
>  
> {code:java}
> val bool: Boolean
>   bool match {
>     case true => do something when bool is true
>     case false => do something when bool is false
>   } {code}
>  
>  
> After
>  
> {code:java}
> val bool: Boolean
>   if (bool) {     
> do something when bool is true   
>   } else {     
> do something when bool is false   
>   } {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org