| 36 | const std::vector<std::shared_ptr<DataType>> kSampleBinaryTypes = {utf8(), binary()}; |
| 37 | |
| 38 | static ExecBatch JSONToExecBatch(const std::vector<TypeHolder>& types, |
| 39 | std::string_view json) { |
| 40 | auto fields = ::arrow::internal::MapVector( |
| 41 | [](const TypeHolder& th) { return field("", th.GetSharedPtr()); }, types); |
| 42 | |
| 43 | ExecBatch batch{*RecordBatchFromJSON(schema(std::move(fields)), json)}; |
| 44 | |
| 45 | return batch; |
| 46 | } |
| 47 | |
| 48 | TEST(KeyColumnMetadata, FromDataType) { |
| 49 | KeyColumnMetadata metadata = ColumnMetadataFromDataType(boolean()).ValueOrDie(); |
no test coverage detected