hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Sichi (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HIVE-1507) Supply DriverContext to Hooks
Date Mon, 02 Aug 2010 19:29:16 GMT

     [ https://issues.apache.org/jira/browse/HIVE-1507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

John Sichi updated HIVE-1507:

    Issue Type: Improvement  (was: Bug)

> Supply DriverContext to Hooks
> -----------------------------
>                 Key: HIVE-1507
>                 URL: https://issues.apache.org/jira/browse/HIVE-1507
>             Project: Hadoop Hive
>          Issue Type: Improvement
>          Components: Query Processor
>            Reporter: Joydeep Sen Sarma
> The DriverContext and the Context (linked off the latter) created during query compilation
have information that's invaluable to writing hooks. In particular, the Context object has
a cache of pathname to file size mappings looked up via hdfs. i would like to get access to
this cache (for both reading and writing) in order to write a hook that depends on query size
(for the purpose of dispatching it to the right cluster).
> It's unfortunate we don't have a generic context object for hooks (into which we can
add more stuff as needed). This is forcing an unnecessary api enhancement (we should be able
to maintain backwards compatibility using reflection though). I think going forward we should
have a generic context object with Session and Query related data inside.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message