Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Impala 2.0
-
None
-
None
Description
This came up while investigating another issue. I'm not sure there's a good use case for this ORDER BY but crashing is never good.
Query: select rank() over (order by 1) from alltypestiny Socket error 104: Connection reset by peer
stack trace
(gdb) bt #0 0x0000003a0ca32635 in raise () from /lib64/libc.so.6 #1 0x0000003a0ca33e15 in abort () from /lib64/libc.so.6 #2 0x00007f562e8e2727 in os::abort(bool) () from /opt/toolchain/sun-jdk-64bit-1.6.0.31/jre/lib/amd64/server/libjvm.so #3 0x00007f562ea35cc8 in VMError::report_and_die() () from /opt/toolchain/sun-jdk-64bit-1.6.0.31/jre/lib/amd64/server/libjvm.so #4 0x00007f562e8e90e5 in JVM_handle_linux_signal () from /opt/toolchain/sun-jdk-64bit-1.6.0.31/jre/lib/amd64/server/libjvm.so #5 0x00007f562e8e53ee in signalHandler(int, siginfo*, void*) () from /opt/toolchain/sun-jdk-64bit-1.6.0.31/jre/lib/amd64/server/libjvm.so #6 <signal handler called> #7 0x0000000001538633 in impala::Sorter::TupleSorter::TupleSorter (this=0x8dcd600, comp=..., block_size=8388608, tuple_size=0, state=0x6040a00) at /data/9/query-gen/Impala/be/src/runtime/sorter.cc:746 #8 0x0000000001538e6b in impala::Sorter::Sorter (this=0x790b340, compare_less_than=..., slot_materialize_expr_ctxs=std::vector of length 0, capacity 0, output_row_desc=0x71e78a8, mem_tracker=0x790a000, profile=0x8aec900, state=0x6040a00) at /data/9/query-gen/Impala/be/src/runtime/sorter.cc:865 #9 0x00000000014dacc7 in impala::SortNode::Open (this=0x71e7860, state=0x6040a00) at /data/9/query-gen/Impala/be/src/exec/sort-node.cc:63