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

Fix error with aggregate function in With child

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.0
    • 4.0.0
    • SQL

    Description

      Right now, if we have an aggregate function in the child of a With expression, we fail an assertion. However, queries like this used to work:

      select
          id between cast(max(id between 1 and 2) as int) and id
      from range(10)
      group by id
      

      Attachments

        Issue Links

          Activity

            People

              kelvinjiang Kelvin Jiang
              kelvinjiang Kelvin Jiang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: