Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-3953

Confusable variable name.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.2.0
    • 1.2.0
    • SQL
    • None

    Description

      In SqlParser.scala, there is following 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)
      

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            sarutak Kousuke Saruta
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: