-
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
Fix service crash caused by using function call as a part of the filter in LOOKUP
#4111
Conversation
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.
Excellent!
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
Codecov Report
@@ Coverage Diff @@
## master #4111 +/- ##
==========================================
- Coverage 85.10% 85.03% -0.07%
==========================================
Files 1339 1324 -15
Lines 132245 131689 -556
==========================================
- Hits 112544 111988 -556
Misses 19701 19701
Continue to review full report at Codecov.
|
…er in `LOOKUP` (#4111) * Fix function call purity check * Add UT for purity check * Add TCK cases
* fix memory leak (#4103) * Param MATCH vid seek fix (#4024) * Add qctx to isEvaluableExpr for kRelIn Fixing MATCH (n) WHERE id(n) IN [$t] RETURN n * Fix eq kVal parameter vidseek * Fix id(n) IN [$var] case * lint add explicit and remove tailing semicolon * clang-format-10 * double check type of rightListValue Addressing Kyle's review comment * ut added in features/yield/parameter.feature * support kAttribute match (n) where n in $list_var return n * Add kSubscript for eq case MATCH (v) WHERE id(v) == $p7.a.b.d[4] RETURN v Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com> Co-authored-by: kyle.cao <kyle.cao@vesoft.com> Co-authored-by: cpw <13495049+CPWstatic@users.noreply.github.com> * disable console pkg (#4110) * disable console pkg * fix * disable console pkg (#4112) * Fix service crash caused by using function call as a part of the filter in `LOOKUP` (#4111) * Fix function call purity check * Add UT for purity check * Add TCK cases * Fix cmake command error (#4114) Co-authored-by: yaphet <4414314+darionyaphet@users.noreply.github.com> Co-authored-by: Wey Gu <weyl.gu@gmail.com> Co-authored-by: kyle.cao <kyle.cao@vesoft.com> Co-authored-by: cpw <13495049+CPWstatic@users.noreply.github.com> Co-authored-by: Yichen Wang <18348405+Aiee@users.noreply.github.com> Co-authored-by: Yee <2520865+yixinglu@users.noreply.github.com>
What type of PR is this?
What problem(s) does this PR solve?
Issue(s) number:
Close #4097
Description:
There is a bug in the constant folding of function call expressions like
date('2022-03-25')
when checking purity.How do you solve it?
Fix purity checking by bonding purity to the number of arity of the function
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: