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

Method Make

cpp/src/arrow/extension/json.cc:55–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55Result<std::shared_ptr<DataType>> JsonExtensionType::Make(
56 std::shared_ptr<DataType> storage_type) {
57 if (!IsSupportedStorageType(storage_type->id())) {
58 return Status::Invalid("Invalid storage type for JsonExtensionType: ",
59 storage_type->ToString());
60 }
61 return std::make_shared<JsonExtensionType>(std::move(storage_type));
62}
63
64std::shared_ptr<DataType> json(std::shared_ptr<DataType> storage_type) {
65 return JsonExtensionType::Make(std::move(storage_type)).ValueOrDie();

Callers

nothing calls this directly

Calls 3

InvalidFunction · 0.50
idMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected