You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2022/03/08 04:46:00 UTC

[jira] [Commented] (SPARK-38439) Add Braces with if,else,for,do and while statements

    [ https://issues.apache.org/jira/browse/SPARK-38439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17502712#comment-17502712 ] 

Apache Spark commented on SPARK-38439:
--------------------------------------

User 'dcoliversun' has created a pull request for this issue:
https://github.com/apache/spark/pull/35758

> Add Braces with if,else,for,do and while statements
> ---------------------------------------------------
>
>                 Key: SPARK-38439
>                 URL: https://issues.apache.org/jira/browse/SPARK-38439
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core, SQL
>    Affects Versions: 3.2.0, 3.2.1
>            Reporter: qian
>            Priority: Minor
>
> Braces are used with {_}if{_}, {_}else{_}, {_}for{_}, _do_ and _while_ statements, even if the body contains only a single statement. Avoid using the following example: 
> {code:java}
> if (condition) statements;
> {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