MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / makeSimplePersonSchema

Function makeSimplePersonSchema

test/api/arrow_error_scenarios_test.cpp:15–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace {
14
15ArrowSchemaWrapper makeSimplePersonSchema() {
16 ArrowSchemaWrapper schema;
17 createStructSchema(&schema, 2);
18 createSchema<int64_t>(schema.children[0], "id");
19 createSchema<std::string>(schema.children[1], "name");
20 return schema;
21}
22
23std::vector<ArrowArrayWrapper> makeSimplePersonArrays() {
24 std::vector<int64_t> ids = {0, 1, 2};

Callers 1

createBasePersonTableFunction · 0.85

Calls 1

createStructSchemaFunction · 0.85

Tested by

no test coverage detected