[MSQ] Regression bug fix where ever LimitFrameProcessor's were used. #13941
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
An MSQ insert statement with LIMIT and PARTITIONED BY ALL TIME no longer works. It returns a Result partition information is not ready yet error. This is a regression introduced because of #13506 .
This is reproducible using any source datasource, for example, this 2-row, 1-column mytest
The insert statement that fails:
The stack trace:
Thanks @weishiuntsai for catching this.
The fix
The limitprocessors are fed shuffled data already. Hence they need not add a shuffling step for the next stage.
Adjusted the
ScanQuerKit
,GroupByQueryKit
for that.Added a case in
ControllerStageTracker#generateResultPartitionsAndBoundariesWithoutKeyStatistics
forShuffleKind.MIX
Fixed the bug ...
Release note
Release notes are not needed since #13506 did not go out.
Key changed/added classes in this PR
ScanQueryKit
GroupByQueryKit
ControllerStageTracker
This PR has: