-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[bugfix][multistage] explicit warning flags set on each stage stats #11936
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
| OPERATOR_EXEC_START_TIME_MS(32, "operatorExecStartTimeMs", MetadataValueType.LONG), | ||
| OPERATOR_EXEC_END_TIME_MS(33, "operatorExecEndTimeMs", MetadataValueType.LONG); | ||
| OPERATOR_EXEC_END_TIME_MS(33, "operatorExecEndTimeMs", MetadataValueType.LONG), | ||
| NUM_JOIN_LIMIT_REACHED(34, "numJoinsLimitReached", MetadataValueType.STRING); |
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.
@saurabhd336 this might affect the partial result flag setting.
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.
To be more specific. numJoinsLimit can cause confusion. Modify other places accordingly
| NUM_JOIN_LIMIT_REACHED(34, "numJoinsLimitReached", MetadataValueType.STRING); | |
| MAX_ROWS_IN_JOIN_REACHED(34, "maxRowsInJoinReached", MetadataValueType.STRING); |
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.
good idea. should we be even more specific: MAX_ROWS_IN_JOIN_HASH_TABLE_REACHED ?
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.
Sounds good to me. Maybe MAX_ROWS_IN_JOIN_TABLE_REACHED since we might optimize it to not use hash table?
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.
wilco
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.
changed it to maxRowsInJoinLimitReached b/c
- the query option is named as maxRowsInJoin
- other join algorithm, such as sort-merge join, there's no "table"
c998973 to
2f0be18
Compare
Codecov Report
@@ Coverage Diff @@
## master #11936 +/- ##
============================================
- Coverage 61.40% 61.40% -0.01%
+ Complexity 1145 1141 -4
============================================
Files 2378 2385 +7
Lines 128851 129081 +230
Branches 19926 19954 +28
============================================
+ Hits 79127 79259 +132
- Misses 44002 44092 +90
- Partials 5722 5730 +8
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 50 files with indirect coverage changes 📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today! |
Jackie-Jiang
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.
Let's add partial response for multi-stage broker request handler
| } | ||
|
|
||
| @JsonProperty("maxRowsInJoinReached") | ||
| public boolean ismaxRowsInJoinReached() { |
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.
| public boolean ismaxRowsInJoinReached() { | |
| public boolean isMaxRowsInJoinReached() { |
| // Just fill up the buffer. | ||
| int remainingRows = _maxRowsInHashTable - _currentRowsInHashTable; | ||
| container = container.subList(0, remainingRows); | ||
| OperatorStats operatorStats = _opChainStats.getOperatorStats(_context, _operatorId); |
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.
Since we set it here, we can change _resourceLimitExceededException into local variable and only create it in THROW mode
this fixes: #11927.
after this PR, when running
returns