-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
handle the core generated in the lookup on
command
#3981
Conversation
兰州小红鸡 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
lookup on
command
Please add test case. |
auto containerOperands = getContainerExprOperands(inExpr->right()); | ||
std::vector<Expression *> containerOperands; | ||
if (inExpr->kind() == Expression::Kind::kRelIn) { | ||
containerOperands = getContainerExprOperands(inExpr->right()); |
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.
if containerOperands
is empty, the orExpr
might not construct correctly. Besides, rewriteInExpr
require a IN
expression.
What is the version you are using?
|
Also, are there indexes built for |
yes, i have build a mul index on itemid and times |
From the issue, seems you are using v2.6.1. |
What type of PR is this?
What problem(s) does this PR solve?
Issue(s) number: #3978
Description:
When using the lookup on command, if there is only one element in the list where tag.propName in ["xx"], there will be a core generated
just like
coredump msg:
How do you solve it?
check the Expr kind before getContainerExprOperands
Special notes for your reviewer, ex. impact of this fix, design document, etc:
Checklist:
Tests:
Affects:
Release notes:
Please confirm whether to be reflected in release notes and how to describe: