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

Uroš Bojanić resolved SPARK-59687.
----------------------------------
    Fix Version/s: 4.4.0
       Resolution: Fixed

Issue resolved by pull request 58941
[https://github.com/apache/spark/pull/58941]

> Use exists instead of find(...).isDefined in 
> WindowExpression.hasWindowExpression
> ---------------------------------------------------------------------------------
>
>                 Key: SPARK-59687
>                 URL: https://issues.apache.org/jira/browse/SPARK-59687
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 4.4.0
>            Reporter: Uroš Bojanić
>            Assignee: Uroš Bojanić
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 4.4.0
>
>
> WindowExpression.hasWindowExpression uses 
> e.find(_.isInstanceOf[WindowExpression]).isDefined. On TreeNode, 
> find(pred).isDefined is equivalent to exists(pred) but allocates an Option; 
> exists short-circuits without it. Behavior-preserving.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to