Raghav Aggarwal created HIVE-29263:
--------------------------------------
Summary: NPE in desc catalog command using CommandAuthorizerV1
Key: HIVE-29263
URL: https://issues.apache.org/jira/browse/HIVE-29263
Project: Hive
Issue Type: Bug
Reporter: Raghav Aggarwal
Assignee: Raghav Aggarwal
Environment: Local setup without kerberos, Hive (master branch
(2fa252a04748e97e6581b7685f8dcc93825eb7f9)
Steps to repro:
{code:java}
create catalog test_new_catalog location '/tmp/test_new_catalog/';
desc catalog test_new_catalog; {code}
Stacktrace:
{code:java}
2025-10-13 23:26:07,359 ERROR thrift.ThriftCLIService: Failed to execute
statement [request:
TExecuteStatementReq(sessionHandle:TSessionHandle(sessionId:THandleIdentifier(guid:72
92 FC 4B 3F 5B 4A 7D 96 8E 33 77 72 F0 78 83, secret:47 79 DA 4B 80 D4 42 F1
80 6D 6B BE 25 E3 0D 07)), statement:desc catalog test_new_catalog,
confOverlay:{}, runAsync:true,
queryTimeout:0)]org.apache.hive.service.cli.HiveSQLException: Error while
compiling statement: FAILED: NullPointerException Cannot invoke
"org.apache.hadoop.hive.ql.metadata.Table.isView()" because "tbl" is null;
Query ID: raghav_20251013232607_6ba0bd75-1c78-4ab7-8791-f125e57a7d74 at
org.apache.hive.service.cli.operation.Operation.toSQLException(Operation.java:376)
at
org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:212)
at
org.apache.hive.service.cli.operation.SQLOperation.runInternal(SQLOperation.java:268)
at
org.apache.hive.service.cli.operation.Operation.run(Operation.java:286) at
org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:558)
at
org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:543)
at
org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:311)
at
org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:650)
at
org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1670)
at
org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1650)
at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:38) at
org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:38) at
org.apache.hive.service.auth.TSetIpAddressProcessor.process(TSetIpAddressProcessor.java:56)
at
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:250)
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)Caused by:
java.lang.NullPointerException: Cannot invoke
"org.apache.hadoop.hive.ql.metadata.Table.isView()" because "tbl" is null at
org.apache.hadoop.hive.ql.security.authorization.command.CommandAuthorizerV1.authorizeInputs(CommandAuthorizerV1.java:145)
at
org.apache.hadoop.hive.ql.security.authorization.command.CommandAuthorizerV1.doAuthorization(CommandAuthorizerV1.java:67)
at
org.apache.hadoop.hive.ql.security.authorization.command.CommandAuthorizer.doAuthorization(CommandAuthorizer.java:56)
at org.apache.hadoop.hive.ql.Compiler.authorize(Compiler.java:440)
at org.apache.hadoop.hive.ql.Compiler.compile(Compiler.java:122) at
org.apache.hadoop.hive.ql.Driver.compile(Driver.java:498) at
org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:450) at
org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:414) at
org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:408) at
org.apache.hadoop.hive.ql.reexec.ReExecDriver.compileAndRespond(ReExecDriver.java:126)
at
org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:205)
... 15 more {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)