MCPcopy Create free account
hub / github.com/apache/arrow / sparse_union

Function sparse_union

cpp/src/arrow/type.cc:3276–3283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3274}
3275
3276std::shared_ptr<DataType> sparse_union(FieldVector child_fields,
3277 std::vector<int8_t> type_codes) {
3278 if (type_codes.empty()) {
3279 type_codes = internal::Iota<int8_t>(0, child_fields.size());
3280 }
3281 return std::make_shared<SparseUnionType>(std::move(child_fields),
3282 std::move(type_codes));
3283}
3284std::shared_ptr<DataType> dense_union(FieldVector child_fields,
3285 std::vector<int8_t> type_codes) {
3286 if (type_codes.empty()) {

Callers 15

TestSessionFunction · 0.85
MakeFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TEST_FFunction · 0.85
TESTFunction · 0.85
GetMemberIntFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TEST_FFunction · 0.85
GetArrowTypeFunction · 0.85
TEST_FFunction · 0.85

Calls 3

FieldsFromArraysAndNamesFunction · 0.85
emptyMethod · 0.45
sizeMethod · 0.45

Tested by 15

TestSessionFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TEST_FFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TESTFunction · 0.68
ASSERT_OK_AND_ASSIGNFunction · 0.68