[ 
https://issues.apache.org/jira/browse/SPARK-48146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kelvin Jiang updated SPARK-48146:
---------------------------------
    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:

{code:sql}
select
    id between cast(max(id between 1 and 2) as int) and id
from range(10)
group by id
{code}

  was:
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:

{code:sql}
select
    id between cast(max(id between 1 and 2) as int) and id
  from range(10)
  group by id
{code}


> Fix error with aggregate function in With child
> -----------------------------------------------
>
>                 Key: SPARK-48146
>                 URL: https://issues.apache.org/jira/browse/SPARK-48146
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 4.0.0
>            Reporter: Kelvin Jiang
>            Priority: Major
>
> 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:
> {code:sql}
> select
>     id between cast(max(id between 1 and 2) as int) and id
> from range(10)
> group by id
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to