-
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 two crash issues caused by the optimizer's filter push-down rules #4864
Conversation
9f77f47
to
ccfc33e
Compare
Codecov ReportBase: 76.78% // Head: 76.85% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #4864 +/- ##
==========================================
+ Coverage 76.78% 76.85% +0.06%
==========================================
Files 1102 1102
Lines 80953 81067 +114
==========================================
+ Hits 62160 62302 +142
+ Misses 18793 18765 -28
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
15a6ec4
to
cceb040
Compare
0f1c5f9
to
a598f24
Compare
2a7c53e
to
24e2a55
Compare
24e2a55
to
c6b9b39
Compare
4cbadbd
to
0bff681
Compare
400a7eb
to
3f35ce4
Compare
0649363
to
89618a5
Compare
I added the fix (PushFilterDownAggregateRule.cpp:97) to another issue (https://github.com/vesoft-inc/nebula-ent/issues/1683) in this PR, since they are concerning the same code segment in PushFilterDownAggregateRule.cpp. |
…er push-down rules. - Added some tck tests.
692592a
to
73f71cf
Compare
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!!
What type of PR is this?
What problem(s) does this PR solve?
Issue(s) number:
Close https://github.com/vesoft-inc/nebula-ent/issues/1580
Close https://github.com/vesoft-inc/nebula-ent/issues/1683
Description:
colNames[i]
runs out-of-range inPrunPropertiesVisitor.cpp
, caused by errors in PushFilterDownAggregateRule & PushFilterDownFilterRule.colNames
becomes larger thangroupItems
in PushFilterDownAggregateRule, causinggroupItems[i]
to run out-of-range.How do you solve it?
PrunPropertiesVisitor.cpp
.PushFilterDownAggregateRule
andPushFilterDownProjectRule
. Try fixing the exchange of operators.Special notes for your reviewer, ex. impact of this fix, design document, etc:
Design-wise, these two structures that shall have the same size belong to different classes: one in the base class, the other in a derived class. They are manipulated independently in many places, directly or indirecly, causing their sizes to differ. If these structures have to be declared in different classes, maybe we could try grouping modifications on them together in the same method. This may prevent such issues at the first place.
Checklist:
Tests:
Affects:
Release notes:
Please confirm whether to be reflected in release notes and how to describe: