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

Function ExampleDenseUnionExtension

cpp/src/arrow/testing/gtest_util.cc:1091–1096  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1089}
1090
1091std::shared_ptr<Array> ExampleDenseUnionExtension() {
1092 auto type = dense_union_extension_type();
1093 auto storage_type = checked_cast<const ExtensionType&>(*type).storage_type();
1094 return ExtensionType::WrapArray(
1095 type, ArrayFromJSON(storage_type, R"([[0, 1.5], [1, "abc"]])"));
1096}
1097
1098std::shared_ptr<Array> ExampleSparseUnionExtension() {
1099 auto type = sparse_union_extension_type();

Callers

nothing calls this directly

Calls 3

ArrayFromJSONFunction · 0.85
storage_typeMethod · 0.80

Tested by

no test coverage detected