Skip to content

[Bug] Crashing caused by IS NULL expression #17462

@mrhhsg

Description

@mrhhsg

Search before asking

  • I had searched in the issues and found no similar issues.

Version

master

What's Wrong?

For ColumnNullable, in addition to checking whether it is exclusive itself, we also need to check its nested column and null_map to determine if it is exclusive.

#0  0x00007f02ca5bd37f in raise () from /lib64/libc.so.6
#1  0x00007f02ca5a7db5 in abort () from /lib64/libc.so.6
#2  0x0000564583ddf8e9 in ?? ()
#3  0x0000564583dd5efd in google::LogMessage::SendToLog() ()
#4  0x0000564583dd63fc in google::LogMessage::Flush() ()
#5  0x0000564583dd9919 in google::LogMessageFatal::~LogMessageFatal() ()
#6  0x000056457ec43f36 in doris::vectorized::ColumnVector<long>::filter (this=<optimized out>, filter=...) at /root/doris-master/be/src/vec/columns/column_vector.cpp:447
#7  0x000056457ec02990 in doris::vectorized::ColumnNullable::filter (this=0x5645b8eca6c0, filter=...) at /root/doris-master/be/src/vec/columns/column_nullable.cpp:313
#8  0x000056457ece8ffe in doris::vectorized::Block::filter_block_internal (block=block@entry=0x5645a9f9fc20, columns_to_filter=..., filter=...) at /root/doris-master/be/src/vec/core/block.cpp:672
#9  0x000056457ece953f in doris::vectorized::Block::filter_block (block=block@entry=0x5645a9f9fc20, columns_to_filter=..., filter_column_id=filter_column_id@entry=7, column_to_keep=column_to_keep@entry=7) at /root/doris-master/be/src/vec/core/block.cpp:744
#10 0x000056457ece99e3 in doris::vectorized::Block::filter_block (block=0x5645a9f9fc20, filter_column_id=7, column_to_keep=7) at /root/doris-master/be/src/vec/core/block.cpp:757
#11 0x000056457ff0ff51 in doris::vectorized::VExprContext::filter_block (vexpr_ctx=0x5645bb312200, block=0x5645a9f9fc20, column_to_keep=7) at /root/doris-master/be/src/vec/exprs/vexpr_context.cpp:112
#12 0x000056458320780f in doris::vectorized::VScanner::_filter_output_block (this=0x5645b24bfb00, block=0x5645a9f9fc20) at /root/doris-master/be/src/vec/exec/scan/vscanner.cpp:95
#13 doris::vectorized::VScanner::get_block (this=0x5645b24bfb00, state=0x5645c5625c00, block=0x5645a9f9fc20, eof=0x7f020386f097) at /root/doris-master/be/src/vec/exec/scan/vscanner.cpp:72
#14 0x000056458320071d in doris::vectorized::ScannerScheduler::_scanner_scan (this=<optimized out>, scheduler=<optimized out>, ctx=0x5645b0d76000, scanner=0x5645b24bfb00) at /root/doris-master/be/src/vec/exec/scan/scanner_scheduler.cpp:306
#15 0x0000564583202dcd in std::function<void ()>::operator()() const (this=<optimized out>) at /root/.local/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/std_function.h:560
#16 doris::PriorityWorkStealingThreadPool::work_thread (this=0x564589608540, thread_id=<optimized out>) at /root/doris-master/be/src/util/priority_work_stealing_thread_pool.hpp:135
#17 0x0000564586554e60 in execute_native_thread_routine ()
#18 0x00007f02c9de817a in start_thread () from /lib64/libpthread.so.0
#19 0x00007f02ca682df3 in clone () from /lib64/libc.so.6

What You Expected?

Do not crash.

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions