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

A bug when having multiple distinct aggregations

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.3.2, 2.4.0
    • Component/s: SQL
    • Labels:
      None

      Description

      SELECT corr(DISTINCT x, y), corr(DISTINCT y, x), count(*) FROM
      (VALUES
         (1, 1),
         (2, 2),
         (2, 2)
      ) t(x, y)
      

      It returns

      java.lang.RuntimeException
      You hit a query analyzer bug. Please report your query to Spark user mailing list.
      

        Attachments

          Activity

            People

            • Assignee:
              cloud_fan Wenchen Fan
              Reporter:
              smilegator Xiao Li
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: