You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Liyin Tang <li...@gmail.com> on 2010/11/24 04:39:53 UTC

change Pre/Post Query Hooks to take only 1 parameter: HookContext

Hi All
Before Hive-1785 committed, the old hook interface will take 4 or 5
parameters to run, which is not scalable for adding more complicated hooks.
Hooks may need more information than these 4 or 5 parameters.
Hive should support to add more hooks without changing the existing hook
interface.
So a better solution is to create a HookContext and all the hook should only
run with this HookContext.

In Hive-1785, the patch still supports the old interface but makes them as
deprecated. New implemented hooks should follow the new interface:
ExecuteWithHookContext. Also the patch has changed all the existing Hooks,
as examples, to follow this new interface


Happy Thanksgiving
Best Regards
Liyin