You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/03/30 17:09:00 UTC

[jira] [Work logged] (HIVE-26095) Add queryid in QueryLifeTimeHookContext

     [ https://issues.apache.org/jira/browse/HIVE-26095?focusedWorklogId=750276&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-750276 ]

ASF GitHub Bot logged work on HIVE-26095:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 30/Mar/22 17:08
            Start Date: 30/Mar/22 17:08
    Worklog Time Spent: 10m 
      Work Description: zabetak opened a new pull request #3156:
URL: https://github.com/apache/hive/pull/3156


   ### What changes were proposed in this pull request?
   Add queryid in QueryLifeTimeHookContext
   
   ### Why are the changes needed?
   See HIVE-26095
   
   ### Does this PR introduce _any_ user-facing change?
   Yes, it introduces a new public API
   
   ### How was this patch tested?
   `mvn test -Dtest=TestQueryLifeTimeHooksWithSQLOperation`
   Plus existing tests cause we ensure that the queryid that is passed in the context is never null.


-- 
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: gitbox-unsubscribe@hive.apache.org

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


Issue Time Tracking
-------------------

            Worklog Id:     (was: 750276)
    Remaining Estimate: 0h
            Time Spent: 10m

> Add queryid in QueryLifeTimeHookContext
> ---------------------------------------
>
>                 Key: HIVE-26095
>                 URL: https://issues.apache.org/jira/browse/HIVE-26095
>             Project: Hive
>          Issue Type: New Feature
>          Components: Hooks
>            Reporter: Stamatis Zampetakis
>            Assignee: Stamatis Zampetakis
>            Priority: Major
>             Fix For: 4.0.0-alpha-2
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> A [QueryLifeTimeHook|https://github.com/apache/hive/blob/6c0b86ef0cfc67c5acb3468408e1d46fa6ef8024/ql/src/java/org/apache/hadoop/hive/ql/hooks/QueryLifeTimeHook.java] is executed various times in the life-cycle of a query but it is not always possible to obtain the id of the query. The query id is inside the {{HookContext}} but the latter is not always available notably during compilation.
> The query id is useful for many purposes as it is the only way to uniquely identify the query/command that is currently running. It is also the only way to match together events appearing in before and after methods.
> The goal of this jira is to add the query id in [QueryLifeTimeHookContext|https://github.com/apache/hive/blob/6c0b86ef0cfc67c5acb3468408e1d46fa6ef8024/ql/src/java/org/apache/hadoop/hive/ql/hooks/QueryLifeTimeHookContext.java] and make it available during all life-cycle events.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)