You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Uroš Bojanić (Jira)" <ji...@apache.org> on 2026/09/21 10:04:00 UTC

[jira] [Created] (SPARK-59687) Use exists instead of find(...).isDefined in WindowExpression.hasWindowExpression

Uroš Bojanić created SPARK-59687:
------------------------------------

             Summary: 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ć


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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org