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

In SparkSQLCLIDriver, val and var should strictly follow the Scala syntax

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.1.0
    • 2.2.0
    • SQL
    • None
    • Spark2.1.0

    Description

      In SparkSQLCLIDriver, val and var should strictly follow the Scala syntax.
      private var prompt = "spark-sql"
      private var continuedPrompt = "".padTo(prompt.length, ' ')

      if there is no place to change the variable.We should use 'val' to modify the variable,otherwise 'var'.

      Attachments

        Activity

          People

            ouyangxc.zte Xiaochen Ouyang
            ouyangxc.zte Xiaochen Ouyang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: