-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
MINOR: [Go] check nil buffer in SizeInBytes #42227
Conversation
Thanks for opening a pull request! If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project. Then could you also rename the pull request title in the following format?
or
In the case of PARQUET issues on JIRA the title also supports:
See also: |
Looks good to me, can you add a unit test for this? |
Creating an Array with no null values should produce something with a nil validity bitmap. Alternately you should be able to use |
@Yifeng-Sigma Adding the following to |
Thanks! added to the PR. |
After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit 77e572b. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 49 possible false positives for unstable benchmarks that are known to sometimes produce them. |
Rationale for this change
Saw a nil error. Unclear to me how this nil buffer got constructed, because when building the arrow data we seem to already check it. But we should do a nil check here anyway
What changes are included in this PR?
Added a nil check.
Are these changes tested?
Are there any user-facing changes?
No.