| 155 | } |
| 156 | |
| 157 | std::shared_ptr<::arrow::Table> NestedTable() { |
| 158 | auto table_schema = ::arrow::schema( |
| 159 | {::arrow::field("first", ::arrow::int32()), |
| 160 | ::arrow::field("group", |
| 161 | ::arrow::struct_({::arrow::field("left", ::arrow::int32()), |
| 162 | ::arrow::field("right", ::arrow::utf8())})), |
| 163 | ::arrow::field("last", ::arrow::int64())}); |
| 164 | return ::arrow::TableFromJSON(table_schema, |
| 165 | {R"([{"first": 1, "group": {"left": 10, "right": "a"}, |
| 166 | "last": 100}, |
| 167 | {"first": 2, "group": {"left": 20, "right": "b"}, |
| 168 | "last": 200}])"}); |
| 169 | } |
| 170 | |
| 171 | template <typename T> |
| 172 | const T* GetAttribute(const CapturedSpan& span, const std::string& name) { |
no test coverage detected