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

Function sparse_union

cpp/src/arrow/type.cc:3271–3278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3269}
3270
3271std::shared_ptr<DataType> sparse_union(FieldVector child_fields,
3272 std::vector<int8_t> type_codes) {
3273 if (type_codes.empty()) {
3274 type_codes = internal::Iota<int8_t>(0, child_fields.size());
3275 }
3276 return std::make_shared<SparseUnionType>(std::move(child_fields),
3277 std::move(type_codes));
3278}
3279std::shared_ptr<DataType> dense_union(FieldVector child_fields,
3280 std::vector<int8_t> type_codes) {
3281 if (type_codes.empty()) {

Callers 15

TestSessionFunction · 0.85
MakeFunction · 0.85
TESTFunction · 0.85
TEST_FFunction · 0.85
type_test.ccFile · 0.85
json_internal.ccFile · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TEST_FFunction · 0.85
GetArrowTypeFunction · 0.85
TEST_FFunction · 0.85
ProcessUnionMethod · 0.85

Calls 3

FieldsFromArraysAndNamesFunction · 0.85
emptyMethod · 0.45
sizeMethod · 0.45

Tested by 15

TestSessionFunction · 0.68
TESTFunction · 0.68
TEST_FFunction · 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
TEST_FFunction · 0.68
GetScalarsFunction · 0.68