You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[coalesce] Add specialized StringArray path for push_batch_with_indices #11563
#11174 routes non-null UInt32 indices through BatchCoalescer::push_batch_with_index. Primitive, byte-view, and fixed-size binary arrays have specialized indexed-copy implementations, but StringArray still uses the generic copy_rows_by_indices fallback.
That fallback calls take to materialize the selected strings and then feeds the result through GenericInProgressArray, so the indexed path does not avoid the extra UTF-8 materialization and copy.
The GKE benchmark run shows the regression most clearly for sparse single_utf8 inputs:
Add a specialized indexed-copy implementation for StringArray that gathers offsets, copies selected values directly into the in-progress buffers, and gathers nulls without first building an intermediate array with take.
The implementation should preserve the existing bounds-checking contract and cover nullable and non-null arrays, repeated or out-of-order indices, and chunking across the target batch size.
Use coalesce_kernels with BENCH_FILTER=take to verify the sparse single_utf8 cases recover the regression without hurting dense or mixed UTF-8 cases.
Additional context
#7764 tracks specialization of the regular push_batch path. This issue is narrower: the indexed push_batch_with_indices / copy_rows_by_indices path introduced in #11174.
Activity
perf(coalesce): specialize sparse byte array filters (apache#11696)