Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
0.4
-
None
-
None
Description
When HCat authorization is turned on the SQL describe extended hcat_showdestable_2.b.foo; fails with
org.apache.hadoop.hive.ql.metadata.HiveException: Invalid table name: hcat_showdestable_2.b.foo at org.apache.hadoop.hive.ql.metadata.Hive.newTable(Hive.java:2157) at org.apache.hadoop.hive.ql.metadata.Hive.getTable(Hive.java:830) at org.apache.hcatalog.cli.SemanticAnalysis.HCatSemanticAnalyzerBase.authorizeTable(HCatSemanticAnalyzerBase.java:152) at org.apache.hcatalog.cli.SemanticAnalysis.HCatSemanticAnalyzer.authorizeDDLWork(HCatSemanticAnalyzer.java:351) at org.apache.hcatalog.cli.SemanticAnalysis.HCatSemanticAnalyzerBase.authorizeDDL(HCatSemanticAnalyzerBase.java:108) at org.apache.hcatalog.cli.SemanticAnalysis.HCatSemanticAnalyzer.postAnalyze(HCatSemanticAnalyzer.java:235) at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:434) at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:336) at org.apache.hadoop.hive.ql.Driver.run(Driver.java:909) at org.apache.hcatalog.cli.HCatDriver.run(HCatDriver.java:42) at org.apache.hcatalog.cli.HCatCli.processCmd(HCatCli.java:250) at org.apache.hcatalog.cli.HCatCli.processLine(HCatCli.java:204) at org.apache.hcatalog.cli.HCatCli.processFile(HCatCli.java:223) at org.apache.hcatalog.cli.HCatCli.main(HCatCli.java:168) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.util.RunJar.main(RunJar.java:156) FAILED: Error in semantic analysis: org.apache.hadoop.hive.ql.parse.SemanticException: org.apache.hadoop.hive.ql.metadata.HiveException: Invalid table name: hcat_showdestable_2.b.foo
It appears that the authorization code is not correctly figuring out that this is a request to describe a table's nested complex column.