Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
Impala 2.1
-
None
Description
QUERY:
SELECT COALESCE(580, MAX(t2.year), 150) AS int_col FROM ( SELECT t1.bool_col, COALESCE(LAG(-826, 69) OVER (ORDER BY t1.bool_col DESC, COALESCE(t2.int_col, t2.smallint_col, t2.id)), 279, -764) AS int_col, COALESCE(t2.int_col, t2.smallint_col, t2.id) AS int_col_2 FROM alltypestiny t1 INNER JOIN alltypestiny t2 ON ((t2.bigint_col) = (t1.id)) AND ((t2.timestamp_col) = (t1.timestamp_col)) ) t1 INNER JOIN alltypes t2 ON (t2.year) = (t1.int_col_2) WHERE (-339.22) IN (-922.68, -254.84)
STACK:
raise () from /lib64/libc.so.6 raise () from /lib64/libc.so.6 abort () from /lib64/libc.so.6 google::DumpStackTraceAndExit () at src/utilities.cc:147 google::LogMessage::Fail () at src/logging.cc:1296 google::LogMessage::SendToLog (this=0x7f84c4b89d80) at src/logging.cc:1250 google::LogMessage::Flush (this=0x7f84c4b89d80) at src/logging.cc:1119 google::LogMessageFatal::~LogMessageFatal (this=0x7f84c4b89d80, __in_chrg=<value optimized out>) at src/logging.cc:1817 impala::RowDescriptor::RowDescriptor (this=0xacf62c8, desc_tbl=..., row_tuples=std::vector of length 4, capacity 4 = {...}, nullable_tuples=Traceback (most recent call last): File "/usr/lib64/../share/gdb/python/libstdcxx/v6/printers.py", line 189, in to_string % (self.typename, int (finish - start), int (end - start))) RuntimeError: Argument to arithmetic operation not a number or boolean. Traceback (most recent call last): File "/usr/lib64/../share/gdb/python/libstdcxx/v6/printers.py", line 172, in next elt = self.item.dereference() RuntimeError: Attempt to take contents of a non-pointer value. ) at /data/9/query-gen/Impala/be/src/runtime/descriptors.cc:257 impala::ExecNode::ExecNode (this=0xacf6280, pool=0xab16a80, tnode=..., descs=...) at /data/9/query-gen/Impala/be/src/exec/exec-node.cc:117 impala::EmptySetNode::EmptySetNode (this=0xacf6280, pool=0xab16a80, tnode=..., descs=...) at /data/9/query-gen/Impala/be/src/exec/empty-set-node.cc:23 impala::ExecNode::CreateNode (pool=0xab16a80, tnode=..., descs=..., node=0x7f84c4b8a0b8) at /data/9/query-gen/Impala/be/src/exec/exec-node.cc:289 impala::ExecNode::CreateTreeHelper (pool=0xab16a80, tnodes=std::vector of length 2, capacity 2 = {...}, descs=..., parent=0x7144300, node_idx=0x7f84c4b8a1fc, root=0x0) at /data/9/query-gen/Impala/be/src/exec/exec-node.cc:224 impala::ExecNode::CreateTreeHelper (pool=0xab16a80, tnodes=std::vector of length 2, capacity 2 = {...}, descs=..., parent=0x0, node_idx=0x7f84c4b8a1fc, root=0x82105a8) at /data/9/query-gen/Impala/be/src/exec/exec-node.cc:233 impala::ExecNode::CreateTree (pool=0xab16a80, plan=..., descs=..., root=0x82105a8) at /data/9/query-gen/Impala/be/src/exec/exec-node.cc:199 impala::PlanFragmentExecutor::Prepare (this=0x82105a0, request=...) at /data/9/query-gen/Impala/be/src/runtime/plan-fragment-executor.cc:197 impala::Coordinator::Exec (this=0xa84ac00, schedule=..., output_expr_ctxs=0x76d4b60) at /data/9/query-gen/Impala/be/src/runtime/coordinator.cc:342 impala::ImpalaServer::QueryExecState::ExecQueryOrDmlRequest (this=0x76d4000, query_exec_request=...) at /data/9/query-gen/Impala/be/src/service/query-exec-state.cc:401 impala::ImpalaServer::QueryExecState::Exec (this=0x76d4000, exec_request=0x7f84c4b8c950) at /data/9/query-gen/Impala/be/src/service/query-exec-state.cc:138 impala::ImpalaServer::ExecuteInternal (this=0x60a2b00, query_ctx=..., session_state=..., registered_exec_state=0x7f84c4b8db67, exec_state=0x7f84c4b8ddf0) at /data/9/query-gen/Impala/be/src/service/impala-server.cc:607 impala::ImpalaServer::Execute (this=0x60a2b00, query_ctx=0x7f84c4b8dc20, session_state=..., exec_state=0x7f84c4b8ddf0) at /data/9/query-gen/Impala/be/src/service/impala-server.cc:550 impala::ImpalaServer::ExecuteStatement (this=0x60a2b00, return_val=..., request=...) at /data/9/query-gen/Impala/be/src/service/impala-hs2-server.cc:709 apache::hive::service::cli::thrift::TCLIServiceProcessor::process_ExecuteStatement (this=0x46490e0, seqid=0, iprot=0x6b214c0, oprot=0x609c300, callContext=0x5c28600) at /data/9/query-gen/Impala/be/generated-sources/gen-cpp/TCLIService.cpp:4695 apache::hive::service::cli::thrift::TCLIServiceProcessor::dispatchCall (this=0x46490e0, iprot=0x6b214c0, oprot=0x609c300, fname="ExecuteStatement", seqid=0, callContext=0x5c28600) at /data/9/query-gen/Impala/be/generated-sources/gen-cpp/TCLIService.cpp:4506 impala::ImpalaHiveServer2ServiceProcessor::dispatchCall (this=0x46490e0, iprot=0x6b214c0, oprot=0x609c300, fname="ExecuteStatement", seqid=0, callContext=0x5c28600) at /data/9/query-gen/Impala/be/generated-sources/gen-cpp/ImpalaHiveServer2Service.cpp:463 apache::thrift::TDispatchProcessor::process (this=0x46490e0, in=..., out=..., connectionContext=0x5c28600) at /data/9/query-gen/Impala/thirdparty/thrift-0.9.0/build/include/thrift/TDispatchProcessor.h:121 apache::thrift::server::TThreadPoolServer::Task::run (this=0x79ac7e0) at src/thrift/server/TThreadPoolServer.cpp:70 apache::thrift::concurrency::ThreadManager::Task::run (this=0x6b20140) at src/thrift/concurrency/ThreadManager.cpp:187 apache::thrift::concurrency::ThreadManager::Worker::run (this=0x6a3e3c0) at src/thrift/concurrency/ThreadManager.cpp:316 impala::ThriftThread::RunRunnable (this=0x6798940, runnable=..., promise=0x7fffde9ac050) at /data/9/query-gen/Impala/be/src/rpc/thrift-thread.cc:61 boost::_mfi::mf2<void, impala::ThriftThread, boost::shared_ptr<apache::thrift::concurrency::Runnable>, impala::Promise<unsigned long>*>::operator() (this=0x6001230, p=0x6798940, a1=..., a2=0x7fffde9ac050) at /usr/include/boost/bind/mem_fn_template.hpp:280 boost::_bi::list3<boost::_bi::value<impala::ThriftThread*>, boost::_bi::value<boost::shared_ptr<apache::thrift::concurrency::Runnable> >, boost::_bi::value<impala::Promise<unsigned long>*> >::operator()<boost::_mfi::mf2<void, impala::ThriftThread, boost::shared_ptr<apache::thrift::concurrency::Runnable>, impala::Promise<unsigned long>*>, boost::_bi::list0> (this=0x6001240, f=..., a=...) at /usr/include/boost/bind/bind.hpp:392 boost::_bi::bind_t<void, boost::_mfi::mf2<void, impala::ThriftThread, boost::shared_ptr<apache::thrift::concurrency::Runnable>, impala::Promise<unsigned long>*>, boost::_bi::list3<boost::_bi::value<impala::ThriftThread*>, boost::_bi::value<boost::shared_ptr<apache::thrift::concurrency::Runnable> >, boost::_bi::value<impala::Promise<unsigned long>*> > >::operator() (this=0x6001230) at /usr/include/boost/bind/bind_template.hpp:20 boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<void, boost::_mfi::mf2<void, impala::ThriftThread, boost::shared_ptr<apache::thrift::concurrency::Runnable>, impala::Promise<unsigned long>*>, boost::_bi::list3<boost::_bi::value<impala::ThriftThread*>, boost::_bi::value<boost::shared_ptr<apache::thrift::concurrency::Runnable> >, boost::_bi::value<impala::Promise<unsigned long>*> > >, void>::invoke (function_obj_ptr=...) at /usr/include/boost/function/function_template.hpp:153 boost::function0<void>::operator() (this=0x7f84c4b8ecd0) at /usr/include/boost/function/function_template.hpp:1013 impala::Thread::SuperviseThread (name="hiveserver2-frontend-1", category="thrift-server", functor=..., thread_started=0x7fffde9abe50) at /data/9/query-gen/Impala/be/src/util/thread.cc:311 boost::_bi::list4<boost::_bi::value<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, boost::_bi::value<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, boost::_bi::value<boost::function<void()> >, boost::_bi::value<impala::Promise<long int>*> >::operator()<void (*)(const std::string&, const std::string&, impala::Thread::ThreadFunctor, impala::Promise<long int>*), boost::_bi::list0>(boost::_bi::type<void>, void (*&)(const std::string &, const std::string &, impala::Thread::ThreadFunctor, impala::Promise<long> *), boost::_bi::list0 &, int) (this=0x6f72af0, f=@0x6f72ae8, a=...) at /usr/include/boost/bind/bind.hpp:457 boost::_bi::bind_t<void, void (*)(const std::string&, const std::string&, impala::Thread::ThreadFunctor, impala::Promise<long int>*), boost::_bi::list4<boost::_bi::value<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, boost::_bi::value<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, boost::_bi::value<boost::function<void()> >, boost::_bi::value<impala::Promise<long int>*> > >::operator()(void) (this=0x6f72ae8) at /usr/include/boost/bind/bind_template.hpp:20 boost::detail::thread_data<boost::_bi::bind_t<void, void (*)(const std::string&, const std::string&, impala::Thread::ThreadFunctor, impala::Promise<long int>*), boost::_bi::list4<boost::_bi::value<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, boost::_bi::value<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, boost::_bi::value<boost::function<void()> >, boost::_bi::value<impala::Promise<long int>*> > > >::run(void) (this=0x6f72960) at /usr/include/boost/thread/detail/thread.hpp:61 thread_proxy () start_thread () from /lib64/libpthread.so.0 clone () from /lib64/libc.so.6
DB: Functional
File Format: Text/None