sql: added PopFirst functionality to RowContainer#10623
sql: added PopFirst functionality to RowContainer#10623irfansharif merged 1 commit intocockroachdb:masterfrom
Conversation
|
Review status: 0 of 2 files reviewed at latest revision, 8 unresolved discussions, all commit checks successful. pkg/sql/row_container.go, line 59 at r1 (raw file):
of the container. pkg/sql/row_container.go, line 60 at r1 (raw file):
reset pkg/sql/row_container.go, line 232 at r1 (raw file):
Use pkg/sql/row_container.go, line 233 at r1 (raw file):
check and panic if there are no rows pkg/sql/row_container.go, line 234 at r1 (raw file):
aren't we supposed to pkg/sql/row_container.go, line 235 at r1 (raw file):
this return is odd when this is the "common" path and we only have two lines, i'd reverse the condition pkg/sql/row_container_test.go, line 51 at r1 (raw file):
this probably doesn't test the code that actually removes the chunk. Maybe run more cases , e.g. pkg/sql/row_container_test.go, line 54 at r1 (raw file):
that Comments from Reviewable |
|
Reviewed 2 of 2 files at r1. pkg/sql/row_container.go, line 231 at r1 (raw file):
perhaps "discards" would allow you to avoid air quotes. Comments from Reviewable |
We now additionally maintain a deleted rows count, indicating the number of rows deleted from the front. Whenever this reaches the number of rows per chunk we delete the first chunk and reset count.
|
Review status: all files reviewed at latest revision, 9 unresolved discussions, all commit checks successful. pkg/sql/row_container.go, line 59 at r1 (raw file):
|
4d62bd7 to
071f32a
Compare
|
For posterity, from slack discussion: PR description currently includes "Fixes #10618" which will cause merging this to close #10618 - that's probably not what you want. Also, you should keep in mind that preemptive API changes like this (i.e. adding an API in one PR with the intention of using it in the next) is generally a bad idea because it limits the reviewer's ability to help you avoid bad API designs. Reviewed 2 of 2 files at r2. Comments from Reviewable |
|
ack, TFTRs! Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed. Comments from Reviewable |
|
Review status: Comments from Reviewable |
We now additionally maintain a deleted rows count, indicating the number
of rows deleted from the fron. Whenever this reaches the number of
rows per chunk we delete the first chunk and reset count.
supplementary to #10534, part of #10618.
cc @RaduBerinde
This change is