You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Kousuke Saruta (JIRA)" <ji...@apache.org> on 2014/10/15 00:46:33 UTC

[jira] [Created] (SPARK-3953) Confusable variable name.

Kousuke Saruta created SPARK-3953:
-------------------------------------

             Summary: Confusable variable name.
                 Key: SPARK-3953
                 URL: https://issues.apache.org/jira/browse/SPARK-3953
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 1.2.0
            Reporter: Kousuke Saruta
            Priority: Minor


In SqlParser.scala, there is following code.

{code}
case d ~ p ~ r ~ f ~ g ~ h ~ o ~ l  =>
  val base = r.getOrElse(NoRelation)
  val withFilter = f.map(f => Filter(f, base)).getOrElse(base)
{code}

in the code above, there 2 variables which has same name "f" in near place. 
One is receiver "f" and other is bound variable "f".




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