Ma77Ball opened a new pull request, #9614:
URL: https://github.com/apache/texera/pull/9614

   ### What changes were proposed in this PR?
   - Add a generic `SourceOperatorExecutor.produceColumnarBatch` default so 
every source is columnar-capable: it batches `produceTuple` rows into Arrow 
roots and never reads `inMemSize`, so SQL, JSON, text, and any other source 
emit columns in columnar mode without a native path.
   - Add native no-`Tuple` fast paths for the bulk scans: Arrow hands out a 
loaded batch zero-copy via `TransferPair` when it fits and copy-slices a larger 
one, Parquet fills Arrow vectors column by column, CSV parses rows straight 
into vectors.
   - Bound each columnar batch by `produceColumnarBatch`'s `maxBatchRows`, fed 
from the output edge's `dataTransferBatchSize` through the new 
`OutputManager.outputBatchSize`, so a large Parquet row group or Arrow record 
batch streams in bounded chunks instead of materializing whole and risking OOM.
   - Make `Tuple.inMemSize` lazy so the columnar source path never pays the 
`deepSizeOf` object-graph walk that dominates the row path.
   - Reuse the single Data transfer batch size settings box for both modes, 
loading 10000 as the columnar default and 400 as the row default on the mode 
toggle while preserving a value the user typed.
   ### Any related issues, documentation, discussions?
   Closes: #9613
   Part of: #9542
   Discussion: #8571
   ### How was this PR tested?
   - Run `sbt "WorkflowOperator/testOnly *CSVScanSourceOpExecSpec 
*ParquetScanSourceOpDescSpec"`, expect the columnar-vs-row parity specs and the 
per-batch cap specs (an explicit small cap over a few rows, asserting the chunk 
sizes) to pass.
   - Run `sbt "WorkflowExecutionService/testOnly *DataProcessorSpec 
*OutputManagerSpec"`, expect the columnar source-emit and output cases to pass.
   - Manual: set `enableColumnarWire=true`, select Columnar mode, run a Parquet 
scan into a selective filter at http://texera.localhost, and confirm the output 
rows are identical to a Row-mode run and that the source emits a bounded number 
of Arrow batches, each no larger than the Data transfer batch size box.
   ### Was this PR authored or co-authored using generative AI tooling?
   Co-authored with Claude Opus 4.8 (Anthropic) in compliance with ASF policy.
   


-- 
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]

Reply via email to