You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yang Jie (Jira)" <ji...@apache.org> on 2022/02/21 03:53:00 UTC
[jira] [Created] (SPARK-38267) Replace pattern matches on boolean expressions with conditional statements
Yang Jie created SPARK-38267:
--------------------------------
Summary: 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
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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org