-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Bug](Function) fix json contains with empty value #36320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
|
run buildall |
|
run buildall |
|
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H: Total hot run time: 39971 ms |
|
TeamCity be ut coverage result: |
TPC-DS: Total hot run time: 172670 ms |
ClickBench: Total hot run time: 30.71 s |
|
|
||
| qt_sql """SELECT JSON_CONTAINS('','1','\$.a')""" | ||
| qt_sql """SELECT JSON_CONTAINS('""','1','\$.a')""" | ||
| qt_sql """SELECT JSON_CONTAINS("",'1','\$.a')""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, what about adding the test for NULL by the way?
xiaokang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
qidaye
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Proposed changes
0# doris::signal::(anonymous namespace)::FailureSignalHandler(int, siginfo_t*, void*) at /home/zcp/repo_center/doris_release/doris/be/src/common/signal_handler.h:421
1# os::Linux::chained_handler(int, siginfo*, void*) in /root/jdk8/jre/lib/amd64/server/libjvm.so
2# JVM_handle_linux_signal in /root/jdk8/jre/lib/amd64/server/libjvm.so
3# signalHandler(int, siginfo*, void*) in /root/jdk8/jre/lib/amd64/server/libjvm.so
4# 0x00007F8327EF6400 in /lib64/libc.so.6
5# doris::JsonbValue::findValue(doris::JsonbPath&, int ()(char const, unsigned int)) at /home/zcp/repo_center/doris_release/doris/be/src/util/jsonb_document.h:1410
6# doris::vectorized::JsonbContainsUtil::jsonb_contains_execute(doris::FunctionContext*, doris::vectorized::Block&, std::vector<unsigned long, std::allocator > const&, unsigned lon
g, unsigned long) at /home/zcp/repo_center/doris_release/doris/be/src/vec/functions/function_jsonb.cpp:1373
7# doris::vectorized::FunctionJsonbContainsdoris::vectorized::JsonbContainsAndPathImpl::execute_impl(doris::FunctionContext*, doris::vectorized::Block&, std::vector<unsigned long, std::allocato
r > const&, unsigned long, unsigned long) const at /home/zcp/repo_center/doris_release/doris/be/src/vec/functions/function_jsonb.cpp:1309
8# doris::vectorized::DefaultExecutable::execute_impl(doris::FunctionContext*, doris::vectorized::Block&, std::vector<unsigned long, std::allocator > const&, unsigned long, unsigne
d long) const at /home/zcp/repo_center/doris_release/doris/be/src/vec/functions/function.h:429
9# doris::vectorized::PreparedFunctionImpl::default_implementation_for_constant_arguments(doris::FunctionContext*, doris::vectorized::Block&, std::vector<unsigned long, std::allocator > const&, unsigned long, unsigned long, bool, bool*) const at /home/zcp/repo_center/doris_release/doris/be/src/vec/functions/function.cpp:170
10# doris::vectorized::PreparedFunctionImpl::execute_without_low_cardinality_columns(doris::FunctionContext*, doris::vectorized::Block&, std::vector<unsigned long, std::allocator >
const&, unsigned long, unsigned long, bool) const in /root/apache-doris-2.1.3-bin-x64/be/lib/doris_be
11# doris::vectorized::PreparedFunctionImpl::execute(doris::FunctionContext*, doris::vectorized::Block&, std::vector<unsigned long, std::allocator > const&, unsigned long, unsigned
long, bool) const at /home/zcp/repo_center/doris_release/doris/be/src/vec/functions/function.cpp:250
12# doris::vectorized::IFunctionBase::execute(doris::FunctionContext*, doris::vectorized::Block&, std::vector<unsigned long, std::allocator > const&, unsigned long, unsigned long, b
ool) const at
Issue Number: close #xxx