lavanv11 opened a new pull request, #665:
URL: https://github.com/apache/spark-connect-rust/pull/665

   ### What changes were proposed in this pull request?
   
   Construct collected Python Rows through the native tuple constructor and 
attach the existing shared field-name list directly. Add compatibility coverage 
for collect, ordinary iteration, and prefetched iteration, and update the Row 
implementation note.
   
   ### Why are the changes needed?
   
   Tuple-compatible result materialization currently invokes `_create_row`, 
`Row.__new__`, and `Row.__setattr__` for every row. The values and their field 
order are already resolved in Rust, so these Python calls add avoidable client 
overhead when collecting large results.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Collection should require less client CPU. Rows remain the public tuple 
subclass with the same field access, duplicate-name behavior, nulls, hashing, 
representation, pickling, immutability, and shared field-name lists.
   
   ### How was this patch tested?
   
   - `cargo fmt --all --check` passed.
   - Added `test_collected_rows_preserve_public_tuple_behavior`, parameterized 
over three collection paths, covering the public behavior above.
   - Upstream execution validation is pending: the local dependency source does 
not yet provide the locked `zstd-sys 2.1.3+zstd.1.5.7`, so Cargo cannot resolve 
dependencies. No upstream build or execution-test pass is claimed. CI must 
validate the extension and offline tests before this draft is ready for review.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: OpenAI Codex (GPT-6).
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to