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

Function NestedTable

cpp/src/parquet/arrow/arrow_reader_writer_tracing_test.cc:157–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157std::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
171template <typename T>
172const T* GetAttribute(const CapturedSpan& span, const std::string& name) {

Callers 1

TESTFunction · 0.85

Calls 4

struct_Function · 0.85
TableFromJSONFunction · 0.85
fieldFunction · 0.70
schemaFunction · 0.50

Tested by

no test coverage detected