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

Function ExampleSparseUnionExtension

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

Source from the content-addressed store, hash-verified

1096}
1097
1098std::shared_ptr<Array> ExampleSparseUnionExtension() {
1099 auto type = sparse_union_extension_type();
1100 auto storage_type = checked_cast<const ExtensionType&>(*type).storage_type();
1101 return ExtensionType::WrapArray(
1102 type, ArrayFromJSON(storage_type, R"([[0, 1.5], [1, "abc"]])"));
1103}
1104
1105ExtensionTypeGuard::ExtensionTypeGuard(const std::shared_ptr<DataType>& type)
1106 : ExtensionTypeGuard(DataTypeVector{type}) {}

Callers

nothing calls this directly

Calls 3

ArrayFromJSONFunction · 0.85
storage_typeMethod · 0.80

Tested by

no test coverage detected