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

Typo in LAST function error message

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Duplicate
    • None
    • None
    • SQL
    • None

    Description

      https://github.com/apache/spark/blob/v2.0.1/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregate/Last.scala#L40

            throw new AnalysisException("The second argument of First should be a boolean literal.")
      

      "First" should be "Last".

      Also the usage string can be improved to match the FIRST function.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lins05 Shuai Lin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: