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

A bug when having multiple distinct aggregations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 2.3.2, 2.4.0
    • SQL
    • 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

            cloud_fan Wenchen Fan
            smilegator Xiao Li
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: