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