You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gluten.apache.org by "iemejia (via GitHub)" <gi...@apache.org> on 2026/06/29 07:58:56 UTC

[PR] [GLUTEN][VL] Fix redundant copies in Delta DV plan conversion [gluten]

iemejia opened a new pull request, #12389:
URL: https://github.com/apache/gluten/pull/12389

   ## What changes were proposed in this pull request?
   
   Fix two minor inefficiencies in `VeloxPlanConverter.cc` (`parseDeltaSplitInfo`):
   
   1. **Double `dynamic_pointer_cast`**: the original code called `dynamic_pointer_cast<DeltaSplitInfo>` twice (once in the ternary condition, once in the true branch). Changed to a single cast + null check.
   
   2. **Unnecessary `std::string` copy from protobuf**: the accessor `serialized_deletion_vector()` returns a `const std::string&` to the internal protobuf field, but `auto` (by value) triggered a full string copy into a local variable. Changed to `const auto&` to bind directly to the protobuf internal field, eliminating the intermediate copy.
   
   ## How was this patch tested?
   
   - Existing C++ Delta unit tests (19 tests in `velox_delta_read_test`): all pass
   - `DeltaDeletionVectorScanInfoSuite`: pass
   - `VeloxDeltaSuite`: pass
   
   ## Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude claude-opus-4.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: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org


Re: [PR] [GLUTEN][VL] Fix redundant copies in Delta DV plan conversion [gluten]

Posted by "felipepessoto (via GitHub)" <gi...@apache.org>.
felipepessoto commented on PR #12389:
URL: https://github.com/apache/gluten/pull/12389#issuecomment-5037695447

   Contributes to #11901


-- 
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: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org


Re: [PR] [GLUTEN][VL] Fix redundant copies in Delta DV plan conversion [gluten]

Posted by "zhztheplayer (via GitHub)" <gi...@apache.org>.
zhztheplayer merged PR #12389:
URL: https://github.com/apache/gluten/pull/12389


-- 
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: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org