| 1106 | } |
| 1107 | |
| 1108 | Status MakeUuid(std::shared_ptr<RecordBatch>* out) { |
| 1109 | auto uuid_type = uuid(); |
| 1110 | auto storage_type = checked_cast<const ExtensionType&>(*uuid_type).storage_type(); |
| 1111 | |
| 1112 | auto f0 = field("f0", uuid_type); |
| 1113 | auto f1 = field("f1", uuid_type, /*nullable=*/false); |
| 1114 | auto schema = ::arrow::schema({f0, f1}); |
| 1115 | |
| 1116 | auto a0 = std::make_shared<ExampleUuidArray>( |
| 1117 | uuid_type, ArrayFromJSON(storage_type, R"(["0123456789abcdef", null])")); |
| 1118 | auto a1 = std::make_shared<ExampleUuidArray>( |
| 1119 | uuid_type, |
| 1120 | ArrayFromJSON(storage_type, R"(["ZYXWVUTSRQPONMLK", "JIHGFEDBA9876543"])")); |
| 1121 | |
| 1122 | *out = RecordBatch::Make(schema, a1->length(), {a0, a1}); |
| 1123 | return Status::OK(); |
| 1124 | } |
| 1125 | |
| 1126 | Status MakeComplex128(std::shared_ptr<RecordBatch>* out) { |
| 1127 | auto type = complex128(); |
no test coverage detected