XiaoHongbo-Hope opened a new pull request, #9678:
URL: https://github.com/apache/paimon/pull/9678

   ### Purpose
   
   Fix conditional self-merge failures when the combined size of Arrow 
`string`, `binary`, or other 32-bit-offset columns exceeds `INT32_MAX`.
   
   `filter_batch` previously registered every input RecordBatch in one 
DataFusion partition. DataFusion could concatenate those batches while 
evaluating the condition, causing an offset overflow even though each 
individual Arrow batch was valid.
   
   ### Changes
   
   - Register each input RecordBatch as a separate DataFusion partition.
   - Collect filtered RecordBatches and rebuild a chunked Arrow table without 
concatenating their 32-bit-offset arrays.
   - Add a low-memory regression test whose combined offsets exceed `INT32_MAX`.
   
   The fix preserves the existing Arrow schema instead of casting columns to 
`large_string` or `large_binary`.
   
   ### Tests
   
   - `133 passed` in `ray_data_evolution_merge_into_test.py`
   - `26 passed` in `table_merge_into_test.py`
   - `6 passed` in `concat_batch_reader_test.py`
   - flake8, py_compile, and `git diff --check`
   


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