[
https://issues.apache.org/jira/browse/IMPALA-8772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jiawei Wang resolved IMPALA-8772.
---------------------------------
Resolution: Fixed
> Import Testcase failed for SQL without table refs
> -------------------------------------------------
>
> Key: IMPALA-8772
> URL: https://issues.apache.org/jira/browse/IMPALA-8772
> Project: IMPALA
> Issue Type: Bug
> Components: Frontend
> Affects Versions: Impala 3.2.0
> Reporter: Jiawei Wang
> Assignee: Jiawei Wang
> Priority: Minor
>
> The command:
> {code:java}
> COPY TESTCASE FROM <hdfspath>
> {code}
> Failed with a NullPointerException when the sql that created this testcase
> has no table refs, for example:
> {code:java}
> select 1,1,1;{code}
> Impalad Log:
> {code:java}
> I0719 11:16:33.910115 27008 Frontend.java:1218]
> b8474692e3ca1cf7:f9dc40a900000000] Analyzing query: COPY TESTCASE FROM
> 'hdfs://localhost:20500/tmp/impala-testcase-data-8314b08e-2299-4641-8cb8-5cc5dc015afc'
> db: default
> I0719 11:16:33.969650 27008 BaseAuthorizationChecker.java:96]
> b8474692e3ca1cf7:f9dc40a900000000] Authorization check took 59 ms
> I0719 11:16:33.969684 27008 Frontend.java:1259]
> b8474692e3ca1cf7:f9dc40a900000000] Analysis and authorization finished.
> I0719 11:16:34.210893 27008 client-request-state.cc:191]
> b8474692e3ca1cf7:f9dc40a900000000] NullPointerException: null
> I0719 11:16:34.210924 27008 impala-server.cc:1252]
> b8474692e3ca1cf7:f9dc40a900000000] UnregisterQuery():
> query_id=b8474692e3ca1cf7:f9dc40a900000000
> I0719 11:16:34.210929 27008 impala-server.cc:1360]
> b8474692e3ca1cf7:f9dc40a900000000] Cancel():
> query_id=b8474692e3ca1cf7:f9dc40a900000000
> {code}
> Catalogd Log:
> {code:java}
> I0719 11:16:34.012580 26794 TAcceptQueueServer.cpp:243] TAcceptQueueServer:
> CatalogService finished connection setup for client <Host: ::ffff:127.0.0.1
> Port: 58834>
> I0719 11:16:34.104486 27020 jni-util.cc:288] java.lang.NullPointerException
> at
> org.apache.impala.service.CatalogOpExecutor.copyTestCaseData(CatalogOpExecutor.java:436)
> at
> org.apache.impala.service.CatalogOpExecutor.execDdlRequest(CatalogOpExecutor.java:375)
> at org.apache.impala.service.JniCatalog.execDdl(JniCatalog.java:162)
> I0719 11:16:34.210777 27020 status.cc:124] NullPointerException: null
> @ 0x1b27122 impala::Status::Status()
> @ 0x22f1ee2 impala::JniUtil::GetJniExceptionMsg()
> @ 0x1b0dd65 impala::JniCall::Call<>()
> @ 0x1b0c2a7 impala::JniUtil::CallJniMethod<>()
> @ 0x1b0a4c4 impala::Catalog::ExecDdl()
> @ 0x1aebe31 CatalogServiceThriftIf::ExecDdl()
> @ 0x1b7ee31 impala::CatalogServiceProcessor::process_ExecDdl()
> @ 0x1b7eb7f impala::CatalogServiceProcessor::dispatchCall()
> @ 0x1ad6513 apache::thrift::TDispatchProcessor::process()
> @ 0x1f27b05 apache::thrift::server::TAcceptQueueServer::Task::run()
> @ 0x1f1d24a impala::ThriftThread::RunRunnable()
> @ 0x1f1e970 boost::_mfi::mf2<>::operator()()
> @ 0x1f1e806 boost::_bi::list3<>::operator()<>()
> @ 0x1f1e552 boost::_bi::bind_t<>::operator()()
> @ 0x1f1e465 boost::detail::function::void_function_obj_invoker0<>::invoke()
> @ 0x1e42f71 boost::function0<>::operator()()
> @ 0x2369b96 impala::Thread::SuperviseThread()
> @ 0x2371f1a boost::_bi::list5<>::operator()<>()
> @ 0x2371e3e boost::_bi::bind_t<>::operator()()
> @ 0x2371e01 boost::detail::thread_data<>::run()
> @ 0x3a41599 thread_proxy
> @ 0x7fb6897fa6b9 start_thread
> @ 0x7fb685fd941c clone
> E0719 11:16:34.210796 27020 catalog-server.cc:112] NullPointerException: null
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)