You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2022/02/10 08:01:00 UTC

[jira] [Commented] (SPARK-38162) Optimize one row plan in normal and AQE Optimizer

    [ https://issues.apache.org/jira/browse/SPARK-38162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17490016#comment-17490016 ] 

Apache Spark commented on SPARK-38162:
--------------------------------------

User 'ulysses-you' has created a pull request for this issue:
https://github.com/apache/spark/pull/35473

> 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: Improvement
>          Components: SQL
>    Affects Versions: 3.3.0
>            Reporter: XiDuo You
>            Priority: Major
>
> Optimize the plan if its max row is equal to or less than 1 in these cases:
>  * if sort max rows less than or equal to 1, remove the sort
>  * if local sort max rows per partition less than or equal to 1, remove the local sort
>  * if aggregate max rows less than or equal to 1 and it's grouping only, remove the aggregate
>  * if 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.1#820001)

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