To get table access info, need to enable
this "hive.stats.collect.tablekeys" property.. By default it is false..

Hope It Helps,
Chinna

On Tue, Jun 2, 2015 at 2:45 PM, Amitosh Anand, IDD M Tech, Computer Sci. &
Engg., IIT (BHU) Varanasi <[email protected]> wrote:

> Hi,
>
> I have been trying to build a hook for hive. I require to get the tables
> affected by a query. I have tried to use HookContext.getQueryPlan
> ().getTableAccessInfo () .
>
> It is giving null value for select and create and load data query. Similar
> is the case with other methods.
>
> Please provide info on how to use these methods.
> It woukd be great if you provide some use case.
>
> Thanks,
> Amitosh Anand,
> IIT BHU.
>



-- 
Hope It Helps,
Chinna

Reply via email to