| 1096 | } |
| 1097 | |
| 1098 | std::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 | |
| 1105 | ExtensionTypeGuard::ExtensionTypeGuard(const std::shared_ptr<DataType>& type) |
| 1106 | : ExtensionTypeGuard(DataTypeVector{type}) {} |
nothing calls this directly
no test coverage detected