Github user bdrillard commented on the issue:

    https://github.com/apache/spark/pull/18075
  
    The earlier failure occurred when the 
[`stopEarly()`](https://github.com/bdrillard/spark/blob/7fe5e4a84d4d8e71e2e63e6794e4ba13ac2e003f/sql/core/src/main/scala/org/apache/spark/sql/execution/limit.scala#L73)
 function is registered to the `OuterClass` potentially twice. Using a [Map of 
functions](https://github.com/apache/spark/pull/18075/files#diff-8bcc5aea39c73d4bf38aef6f6951d42cR239)
 holding the function code _and_ its name fixes the issue, as whenever a 
function of the same name would be added more than once, it updates the older 
value. The tests pass after the change.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to