Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-8772

Import Testcase failed for SQL without table refs

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Impala 3.2.0
    • Fix Version/s: None
    • Component/s: Frontend
    • Labels:
      None
    • Epic Color:
      ghx-label-6

      Description

      The command:

      COPY TESTCASE FROM <hdfspath>
      

      Failed with a NullPointerException when the sql that created this testcase has no table refs, for example:

      select 1,1,1;

      Impalad Log:

      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
      

      Catalogd Log:

      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
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jiawei.wang Jiawei Wang
                Reporter:
                jiawei.wang Jiawei Wang
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: