KHARSHAVARDHAN-eng opened a new pull request, #50652:
URL: https://github.com/apache/arrow/pull/50652
## Summary
`ArrayBuilder::AppendScalar` and `AppendScalars` previously relied on the
centralized `AppendScalarImpl` visitor to dispatch scalar appends based on
the scalar type.
This refactors scalar appending to use virtual method polymorphism within
the builder hierarchy, moving the implementation into the appropriate
builder classes while preserving the existing behavior.
## Implementation
- Remove the centralized `AppendScalarImpl` visitor.
- Implement `AppendScalar` and `AppendScalars` on the relevant builder
classes.
- Retain the existing dispatch semantics while replacing visitor-based
dispatch with virtual method polymorphism.
## Testing
- Built `arrow-array-test`.
- Ran the full `arrow-array-test` suite.
- All 1047 tests passed.
--
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]