You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2016/04/19 11:57:25 UTC

[jira] [Commented] (SPARK-14728) Add a rule to block the use of getOrElse(null) which can simply be orNull.

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

Hyukjin Kwon commented on SPARK-14728:
--------------------------------------

[~rxin] Do you think it is okay to add a rule? If you are not sure, I can just add a PR to fix them without adding a rule.

> Add a rule to block the use of getOrElse(null) which can simply be orNull.
> --------------------------------------------------------------------------
>
>                 Key: SPARK-14728
>                 URL: https://issues.apache.org/jira/browse/SPARK-14728
>             Project: Spark
>          Issue Type: Improvement
>    Affects Versions: 2.0.0
>            Reporter: Hyukjin Kwon
>            Priority: Trivial
>
> Currently, it looks {{getOrElse(null)}} is being used which just can be {{orNull}} sparsely.
> As it is the same expression but shorten and clear, I think the rule for this might have to be added.



--
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