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

Function createComplexArrowPersonTable

test/api/arrow_rel_table_test.cpp:282–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282void createComplexArrowPersonTable(main::Connection& connection,
283 const std::string& tableName = "person") {
284 auto schema = makeComplexPersonSchema();
285 std::vector<ArrowArrayWrapper> arrays;
286 arrays.push_back(makePersonBatch(getComplexPersonBatch0()));
287 arrays.push_back(makePersonBatch(getComplexPersonBatch1()));
288 auto result = ArrowTableSupport::createViewFromArrowTable(connection, tableName,
289 std::move(schema), std::move(arrays));
290 ASSERT_TRUE(result.queryResult->isSuccess()) << result.queryResult->getErrorMessage();
291}
292
293void createComplexArrowKnowsTable(main::Connection& connection,
294 const std::string& tableName = "knows", const std::string& srcTableName = "person",

Callers 2

TEST_FFunction · 0.85
SetUpMethod · 0.85

Calls 5

makeComplexPersonSchemaFunction · 0.85
makePersonBatchFunction · 0.70
push_backMethod · 0.45
isSuccessMethod · 0.45
getErrorMessageMethod · 0.45

Tested by

no test coverage detected