[bugfix][multistage] explicit warning flags set on each stage stats#11936
[bugfix][multistage] explicit warning flags set on each stage stats#11936walterddr merged 8 commits intoapache:masterfrom
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.
@saurabhd336 this might affect the partial result flag setting.
There was a problem hiding this comment.
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.
good idea. should we be even more specific: MAX_ROWS_IN_JOIN_HASH_TABLE_REACHED ?
There was a problem hiding this comment.
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.
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.
Let's add partial response for multi-stage broker request handler
| } | ||
|
|
||
| @JsonProperty("maxRowsInJoinReached") | ||
| public boolean ismaxRowsInJoinReached() { |
There was a problem hiding this comment.
| 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.
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