Add query comment to ignore max memory row limit#6430
Add query comment to ignore max memory row limit#6430deepthi merged 2 commits intovitessio:masterfrom
Conversation
|
@spark4 can you resolve the conflicts? |
b5e1167 to
ca3cbed
Compare
ca3cbed to
666223d
Compare
go/vt/vtgate/engine/join_test.go
Outdated
There was a problem hiding this comment.
nice expansion of the test cases
Signed-off-by: Serry Park <me@serry.co>
666223d to
09cbcb1
Compare
go/vt/vtgate/executor.go
Outdated
There was a problem hiding this comment.
Calling this out since this may be easy to miss and the other comment is no longer relevant -- setting this explicitly to true since this is being called within StreamExecute
…arser calls Signed-off-by: Serry Park <me@serry.co>
09cbcb1 to
bce9c2a
Compare
|
Unit tests are failing as you can see here: https://github.com/vitessio/vitess/actions?query=branch%3Aignore-max-memory-rows |
|
@deepthi the unit test failures should have been resolved by the last commit. Is there an easy way to restart tests that have been stuck in |
You can click on |
Overview
We currently have warn and max thresholds for the number of rows that can be returned by a given query. However, there exists no mechanism for ignoring the
max_memory_rowslimit for a given query when this flag is enabled. This PR introduces a new query comment directive that will allow us to ignore themax_memory_rowslimit, similar to that formax_payload_sizein this PR.Relevant Issue: #6213
Relevant PR: #6143
Implementation
DirectiveIgnoreMaxMemoryRows.DirectiveIgnoreMaxMemoryRowsvalue at the executor step and pass that into vcursor for later validation.MaxMemoryRowsvalidation ifDirectiveIgnoreMaxMemoryRowsis set.Testing
Testing was done via unit testing and manual testing. The following manual test cases were covered:
max_memory_rowslimit continue to work as expectedmax_memory_rowslimit fail as expectedmax_memory_rowslimit that have theDirectiveIgnoreMaxMemoryRowsquery comment will succeed as expected