Describe the enhancement requested
Mainly for below improvement and codes simplification:
- NullGeneralization not support chunked-array's null status check which may prevent some optimization for preallocation.[1]
- ComputeDataPreallocate not support
[Large]ListView's preallocate.[2]
- Some DCHECK and branch check for preallocate the validity-bitmaps are unnecessary.
[1] https://github.com/apache/arrow/blob/ad897bb843b06bb7d54c5913396ac54f736e4e7c/cpp/src/arrow/compute/exec.cc#L943C1-L951C58
[2]
https://github.com/apache/arrow/blob/ad897bb843b06bb7d54c5913396ac54f736e4e7c/cpp/src/arrow/compute/exec.cc#L286C1-L308C2
Component(s)
C++