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 2016/11/21 08:18:58 UTC

[jira] [Commented] (SPARK-18521) Add `NoRedundantStringInterpolator` Scala rule

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

Apache Spark commented on SPARK-18521:
--------------------------------------

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

> Add `NoRedundantStringInterpolator` Scala rule
> ----------------------------------------------
>
>                 Key: SPARK-18521
>                 URL: https://issues.apache.org/jira/browse/SPARK-18521
>             Project: Spark
>          Issue Type: Improvement
>            Reporter: Weiqing Yang
>
> Currently the s string interpolator is used in many cases in which there is no embed variable reference in the processed string literals. 
> For example:
> core/src/main/scala/org/apache/spark/deploy/Client.scala
> {code}
> logError(s"Error processing messages, exiting.")
> {code}
> examples/src/main/scala/org/apache/spark/examples/graphx/SynthBenchmark.scala
> {code}
> println(s"Creating graph...")
> {code}
> examples/src/main/scala/org/apache/spark/examples/mllib/LDAExample.scala
> {code}
> println(s"Corpus summary:")
> {code}
> sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLViewSuite.scala
> {code}
> test(s"correctly handle CREATE OR REPLACE TEMPORARY VIEW") {
> {code}
> We can add a new scala style rule 'NoRedundantStringInterpolator' to prevent unnecessary string interpolators. 



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