The GitHub Actions job "Required Checks" on texera.git/columnar/01-foundation 
has succeeded.
Run started by GitHub user Ma77Ball (triggered by Ma77Ball).

Head commit for run:
8b954dfe024ff39315c6b84979ed4005d2548330 / Matthew Ball <[email protected]>
feat(engine): vectorized receive for columnar-wire batches

Routes an incoming Arrow columnar batch to a ColumnarOperatorExecutor's 
processColumnarBatch in the worker, so a columnar-capable operator consumes the 
Arrow columns directly instead of the batch always being decoded back to tuples 
first. The benchmark showed decoding Arrow to tuples is the columnar wire's 
dominant cost, far more than Kryo rehydrating a DataFrame, so the wire only 
pays off when the receiver reads columns natively; this is the path that 
realizes that win.

Worker routing (DataProcessor):
- A ColumnarFrame now goes through processColumnarFrame. When the executor is a 
ColumnarOperatorExecutor, the worker transitions to RUNNING, binds the 
executor's state references, and hands it the Arrow IPC bytes via 
processColumnarBatch, then routes the ColumnarResult: Emit(root) is 
materialized to output tuples (the existing output path is tuple-based) and the 
root is freed; EmitRows installs the returned rows as the output; Consumed 
emits nothing now (a blocking operator that accumulated the batch); 
Unsupported, or any non-columnar executor, falls back to decoding the batch to 
tuples and processing it as a DataFrame. The READY->RUNNING transition is 
factored out of startInputBatch into transitToRunning, shared by both paths. 
For a natively consumed batch the per-tuple input manager is left empty (there 
is no per-tuple input to drain), so the DP loop drains only the output iterator.
- StatisticsManager gains a batched increaseInputStatistics(portId, count, 
size) so the columnar path reports a whole batch's row count and serialized 
size in one call rather than once per tuple; the single-tuple overload 
delegates to it.

Root-to-tuples decode (ArrowUtils):
- tuplesOfRoot decodes an already-open VectorSchemaRoot to tuples (the Emit 
output path's root-to-rows step). Like deserializeTuples it resolves the Texera 
schema, the field vectors, and each column's type once and reads each row with 
a plain index loop, but it works over a live root without closing it.

Tests:
- DataProcessorSpec adds the four routing outcomes plus the non-columnar case, 
driving real ColumnarFrames through processDataPayload with fake executors: 
Emit (a pass-through filter) emits the batch's rows and never calls 
processTuple; EmitRows emits the returned rows; Consumed emits nothing and 
still counts the batch's input statistics; Unsupported and a plain row-only 
executor both decode the frame and run it through processTuple per row.
- ArrowUtilsSpec asserts tuplesOfRoot decodes a live root to the same tuples 
deserializeTuples produces from the IPC bytes.

Report URL: https://github.com/apache/texera/actions/runs/44913539013

With regards,
GitHub Actions via GitBox

Reply via email to