-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
exec: Fix bug in test case generation causing NULLs not to be reset between batches #38612
Conversation
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.
Reviewed 1 of 1 files at r1.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @rohany and @solongordon)
pkg/sql/exec/utils_test.go, line 269 at r1 (raw file):
} // Reset nulls for all columns in this batch
[nit]: missing period.
pkg/sql/exec/utils_test.go, line 349 at r1 (raw file):
} // Reset nulls for all columns in this batch
ditto
There was a small bug in the exec test generator causing some nulls in batches to not be reset, due to iterating over the columns of the input tuple type rather than over all columns in the batch. Release note: None
TFTR! Fixed that up. |
bors r+ |
38612: exec: Fix bug in test case generation causing NULLs not to be reset between batches r=rohany a=rohany There was a small bug in the exec test generator causing some nulls in batches to not be reset, due to iterating over the columns of the input tuple type rather than over all columns in the batch. Release note: None Co-authored-by: Rohan Yadav <rohany@alumni.cmu.edu>
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.
I wonder if it would be better to make a new batch every time Next()
is called. That way we don't need to worry about the batch being mutated by downstream operators, e.g. setting nulls or adding more columns.
Reviewable status: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @rohany, @solongordon, and @yuzefovich)
Build succeeded |
There was a small bug in the exec test generator causing some
nulls in batches to not be reset, due to iterating over the
columns of the input tuple type rather than over all columns
in the batch.
Release note: None