westonpace commented on issue #35301:
URL: https://github.com/apache/arrow/issues/35301#issuecomment-1538996520
> So like the current FetchNode, but then using an array of indices instead
of a slice as input argument? (and omitting vs selecting)
Yes, it would need a sequencing queue like the fetch node and the process
function would be something like...
```
row_start = current_offset;
row_end = row_start + batch.length;
deleted_indices = get_deleted_indices_in_range(row_start, row_end)
if deleted_indices:
normalized = deleted_indices - row_start
kept_indices = range(0, batch.length) - normalized
batch = batch.take(kept_indices)
output.input_received(batch)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]