Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-27764 Feature Parity between PostgreSQL and Spark
  3. SPARK-28646

Allow usage of `count` only for parameterless aggregate function

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.1.0
    • SQL
    • None

    Description

      Currently, Spark allows calls to `count` even for non parameterless aggregate function. For example, the following query actually works:

      SELECT count() OVER () FROM tenk1;

      In PgSQL, on the other hand, the following error is thrown:

      ERROR:  count(*) must be used to call a parameterless aggregate function

      Attachments

        Activity

          People

            beliefer Jiaan Geng
            DylanGuedes Dylan Guedes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: