You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Marta Kuczora (JIRA)" <ji...@apache.org> on 2018/03/05 15:27:00 UTC

[jira] [Commented] (HIVE-18060) UpdateInputAccessTimeHook fails for non-current database

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

Marta Kuczora commented on HIVE-18060:
--------------------------------------

Hi [~osayankin],
what is the status of this patch? Is only the q test update missing or are there other pending works on this patch?
Thanks and regards,
Marta

> UpdateInputAccessTimeHook fails for non-current database
> --------------------------------------------------------
>
>                 Key: HIVE-18060
>                 URL: https://issues.apache.org/jira/browse/HIVE-18060
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Oleksiy Sayankin
>            Assignee: Oleksiy Sayankin
>            Priority: Major
>             Fix For: 3.0.0
>
>         Attachments: HIVE-18060.1.patch
>
>
> Steps to reproduce:
> *STEP 1. Create DBs and tables*
> {code}
> hive> create database temp;
> hive> use temp;
> hive> create table test(id int);
> hive> create database temp2;
> hive> use temp2;
> hive> create table test2(id int);
> {code}
> *STEP 2. Set {{hive.exec.pre.hooks}}*
> {code}
> hive> set hive.exec.pre.hooks=org.apache.hadoop.hive.ql.hooks.UpdateInputAccessTimeHook$PreExec;
> {code}
> *STEP 3. Use {{desc}}*
> {code}
> hive> use temp;
> hive> desc temp2.test2;
> {code}
> *EXPECTED RESULT*
> Code works fine and shows table info
> *ACTUAL RESULT*
> {code}
> FAILED: Hive Internal Error: org.apache.hadoop.hive.ql.metadata.InvalidTableException(Table not found test2)
> org.apache.hadoop.hive.ql.metadata.InvalidTableException: Table not found test2
> 	at org.apache.hadoop.hive.ql.metadata.Hive.getTable(Hive.java:1258)
> 	at org.apache.hadoop.hive.ql.metadata.Hive.getTable(Hive.java:1209)
> 	at org.apache.hadoop.hive.ql.metadata.Hive.getTable(Hive.java:1196)
> 	at org.apache.hadoop.hive.ql.hooks.UpdateInputAccessTimeHook$PreExec.run(UpdateInputAccessTimeHook.java:61)
> 	at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1688)
> 	at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1454)
> 	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1172)
> 	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1162)
> 	at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:234)
> 	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:185)
> 	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:401)
> 	at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:791)
> 	at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:729)
> 	at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:652)
> 	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:647)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
> 	at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)