Github user chenghao-intel commented on the pull request:

    https://github.com/apache/spark/pull/7788#issuecomment-126593823
  
    That's quite confusing when adding the `terminatePartial`, but the reason 
that I added for performance concern with Hive integration.
    
    `terminatedPartial` will be called once after we finish the map side 
iterating for each group, however, if we removed the `terminatePartial` 
function from the UDAF interface, we have to call the hive `terminatedPartial` 
within the `update` implementation, that will be very expensive.



---
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