You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "szehon-ho (via GitHub)" <gi...@apache.org> on 2026/08/27 22:02:22 UTC

[PR] [SPARK-58769][SQL][FOLLOWUP] Clarify the BoundFunction equality contract [spark]

szehon-ho opened a new pull request, #58363:
URL: https://github.com/apache/spark/pull/58363

   ### What changes were proposed in this pull request?
   
   Clarify the `BoundFunction.equals` documentation by:
   
   - adding valid aggregate-query rejection to the existing list of consequences when separately bound functions do not compare equal;
   - adding concise connector examples for stateless functions and functions with bound state; and
   - correcting nearby test comments that implied `UnboundFunction.bind` must return a fresh instance.
   
   ### Why are the changes needed?
   
   The current documentation says missed equality matches affect performance only. However, if repeated scalar function calls bind to distinct objects that do not compare equal, a query that selects and groups by the same call may fail with `MISSING_AGGREGATION`.
   
   Also, `UnboundFunction.bind` permits both shared and newly created bound-function instances.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Documentation and test-comment changes only. `git diff --check` passed.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: OpenAI Codex


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [PR] [SPARK-58769][SQL][FOLLOWUP] Clarify the BoundFunction equality contract [spark]

Posted by "szehon-ho (via GitHub)" <gi...@apache.org>.
szehon-ho commented on PR #58363:
URL: https://github.com/apache/spark/pull/58363#issuecomment-5445772301

   cc @peter-toth , i think we miswrote the javadoc to say its perf problem only.
   
   Also cc @zhengruifeng who I think found this issue in post-review 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [PR] [SPARK-58769][SQL][FOLLOWUP] Clarify the BoundFunction equality contract [spark]

Posted by "szehon-ho (via GitHub)" <gi...@apache.org>.
szehon-ho commented on PR #58363:
URL: https://github.com/apache/spark/pull/58363#issuecomment-5457551786

   Thank you all!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [PR] [SPARK-58769][SQL][FOLLOWUP] Clarify the BoundFunction equality contract [spark]

Posted by "szehon-ho (via GitHub)" <gi...@apache.org>.
szehon-ho commented on PR #58363:
URL: https://github.com/apache/spark/pull/58363#issuecomment-5457550519

   **Merge Summary:**
   - merged into master https://github.com/apache/spark/commit/024120dc960517021a887b51865220f544340362
   - merged into branch-4.x https://github.com/apache/spark/commit/a1e8b7b9ba0f1b546a67be2af00daa90690fcb20
   
   *Posted by `merge_spark_pr.py`*


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [PR] [SPARK-58769][SQL][FOLLOWUP] Clarify the BoundFunction equality contract [spark]

Posted by "szehon-ho (via GitHub)" <gi...@apache.org>.
szehon-ho closed pull request #58363: [SPARK-58769][SQL][FOLLOWUP] Clarify the BoundFunction equality contract
URL: https://github.com/apache/spark/pull/58363


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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