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

Yuming Wang reassigned SPARK-38162:
-----------------------------------

    Assignee: XiDuo You

> Optimize one row plan in normal and AQE Optimizer
> -------------------------------------------------
>
>                 Key: SPARK-38162
>                 URL: https://issues.apache.org/jira/browse/SPARK-38162
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.3.0
>            Reporter: XiDuo You
>            Assignee: XiDuo You
>            Priority: Major
>             Fix For: 3.3.0
>
>
> Optimize the plan if its max row is equal to or less than 1 in these cases:
> - if the child of sort max rows less than or equal to 1, remove the sort
> - if the child of local sort max rows per partition less than or equal to 1, 
> remove the local sort
> - if the child of aggregate max rows less than or equal to 1 and it's 
> grouping only (include the rewritten distinct plan), remove the aggregate
> - if the child of aggregate max rows less than or equal to 1, set distinct to 
> false in all aggregate expression



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