-
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
GH-38457: [C++] Support LogicalNullCount for DictionaryArray #38681
Conversation
|
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
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.
+1
#34408 added a |
Hi, it's good to merge this to |
Well, bounds checking is not necessary since the dictionary array is presumed to be valid already. |
Ok, let's do this. I will implement it ASAP |
Hi, I have updated to LogicalCount version. Please review the changes when you have time. |
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.
LGTM, just a few changes
Co-authored-by: Benjamin Kietzman <bengilgit@gmail.com>
After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit b1f1ef4. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 3 possible false positives for unstable benchmarks that are known to sometimes produce them. |
…pache#38681) ### Rationale for this change Currently, the `null_count` only returns the number of null values in `indices`. We want to count the real nulls as the dictionary array is decoded. ### What changes are included in this PR? Add `DictionaryMayHaveLogicalNulls` and `ComputeLogicalNullCount` for DictionaryArray ### Are these changes tested? Yes ### Are there any user-facing changes? No. * Closes: apache#38457 Lead-authored-by: Junming Chen <junming.chen.r@outlook.com> Co-authored-by: Benjamin Kietzman <bengilgit@gmail.com> Co-authored-by: Sutou Kouhei <kou@cozmixng.org> Signed-off-by: Benjamin Kietzman <bengilgit@gmail.com>
Rationale for this change
Currently, the
null_count
only returns the number of null values inindices
. We want to count the real nulls as the dictionary array is decoded.What changes are included in this PR?
Add
DictionaryMayHaveLogicalNulls
andComputeLogicalNullCount
for DictionaryArrayAre these changes tested?
Yes
Are there any user-facing changes?
No.