You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ArrayBuilder::AppendScalar implementation is currently very odd:
the ArrayBuilder hierarchy uses polymorphism (i.e. virtual methods) to handle type-specific operations
but ArrayBuilder::AppendScalar is implemented entirely in the base class using a visitor, putting type-specific knowledge in the base class definition
but ArrayBuilder::AppendScalar is also a virtual method overriden in dictionary and run-end-encoded builders
furthermore, the visitor in the base class definition of ArrayBuilder::AppendScalar dispatched on the scalar's data type, instead of the builder's data type
We should refactor the AppendScalar implementation to be entirely polymorphic and remove any trace of type-specific implementations in the base class (ArrayBuilder::AppendScalar would probably become a pure virtual method).
@SHAURYASAXENA2024 I think you haven't contributed before? This issue is probably too complex, please look for issues with the "good first issue" label.
Thank you very much for your advice! Yes, you are correct, this is my first time contributing to Apache Arrow. First, I will become acquainted with the code base and the contribution process.
Activity
SHAURYASAXENA2024 commentedon Jul 22, 2026
Hi! I'd like to work on this issue if it's still available. Please let me know if someone is already working on it.
pitrou commentedon Jul 22, 2026
@SHAURYASAXENA2024 I think you haven't contributed before? This issue is probably too complex, please look for issues with the "good first issue" label.
SHAURYASAXENA2024 commentedon Jul 22, 2026
Thank you very much for your advice! Yes, you are correct, this is my first time contributing to Apache Arrow. First, I will become acquainted with the code base and the contribution process.
apacheGH-50596: [C++] AppendScalar implementation uses polymorphism
VedantRalekar commentedon Aug 14, 2026
Hi, anyone working on this issue ?
apacheGH-50596: [C++] Restore AppendScalar type validation
apacheGH-50596: [C++] Fix AppendScalar method hiding, template instan…