hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chao Sun (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-14340) Add a new hook triggers before query compilation and after query execution
Date Fri, 29 Jul 2016 18:52:20 GMT

    [ https://issues.apache.org/jira/browse/HIVE-14340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15399847#comment-15399847
] 

Chao Sun commented on HIVE-14340:
---------------------------------

{quote}
Query hook is a little ambiguous.
{quote}
Hmm... how about {{hive.query.lifetime.hooks}}? I'm open to suggestions. :)

{quote}
Since post execution hooks are already supported, does this mean we just need to add pre compilation
hook? Isn't pre semantic analysis good for this purpose?
{quote}
Yeah, I've hesitated on this - not sure if its a good idea to add this new hook.. One reason
is that I'm not sure how to get the query command for the post-exec case, and another is that
the user needs to implement two interfaces and add multiple configurations.

> Add a new hook triggers before query compilation and after query execution
> --------------------------------------------------------------------------
>
>                 Key: HIVE-14340
>                 URL: https://issues.apache.org/jira/browse/HIVE-14340
>             Project: Hive
>          Issue Type: Improvement
>          Components: Query Processor
>    Affects Versions: 2.2.0
>            Reporter: Chao Sun
>            Assignee: Chao Sun
>         Attachments: HIVE-14340.0.patch
>
>
> In some cases we may need to have a hook that activates before a query compilation and
after its execution. For instance, dynamically generate a UDF specifically for the running
query and clean up the resource after the query is done. The current hooks only covers pre
& post semantic analysis, pre & post query execution, which doesn't fit the requirement.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message