Prajwal-banakar opened a new pull request, #411:
URL: https://github.com/apache/fluss-rust/pull/411

   ### Purpose
   Linked issue: close #378
   
   The purpose of this change is to expose lookup results in Arrow format
   by adding a `to_record_batch()` method to `LookupResult`. This enables
   integration with DataFusion and other Arrow-based tools.
   
   ### Brief change log
   - Added `to_record_batch()` method to `LookupResult` in
     `crates/fluss/src/client/table/lookup.rs`
   - The method uses the existing `RowAppendRecordBatchBuilder` to append
     each row and build an Arrow `RecordBatch`
   - Returns an empty `RecordBatch` with the correct schema if the result
     set is empty
   
   ### Tests
   - All 187 existing unit tests pass with no regressions
   - `cargo fmt` and `cargo clippy` pass cleanly
   
   ### API and Format
   - No changes to storage format
   - New public method `LookupResult::to_record_batch() -> Result<RecordBatch>`
     added to the client API
   
   ### Documentation
   - This change does not introduce a new feature but extends an existing
     struct with a utility method for Arrow interoperability


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