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

MODE average aggregate function.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Incomplete
    • 2.2.0
    • None
    • SQL

    Description

      Having a MODE() aggregate function which returns the mode average of a group/window would be very useful.

      For example, if the column type is a number, it finds the most common number, and if the column type is a string, it finds the most common string.

      I appreciate that doing this in a scalable way will require some thinking/discussion.

      Attachments

        Activity

          People

            Unassigned Unassigned
            thesuperzapper Mathew Wicks
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: