[C++] Add type_id to arrow::ArrayBuilder
Author: andishgarCreated Sep 27, 2026Updated Oct 1, 2026
LabelsType: enhancementComponent: C++
Describe the enhancement requested
Invoking arrow::ArrayBuilder::type()->id() can be costly for nested types because the type is constructed on each invocation. Add arrow::ArrayBuilder::type_id() so that the type ID can be acquired directly when needed.
Component(s)
C++
Source: apache/arrow