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

Function createComplexArrowKnowsTable

test/api/arrow_rel_table_test.cpp:293–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293void createComplexArrowKnowsTable(main::Connection& connection,
294 const std::string& tableName = "knows", const std::string& srcTableName = "person",
295 const std::string& dstTableName = "person") {
296 auto schema = makeKnowsSchema();
297 std::vector<ArrowArrayWrapper> arrays;
298 arrays.push_back(makeKnowsBatch(getKnowsBatch0()));
299 arrays.push_back(makeKnowsBatch(getKnowsBatch1()));
300 auto result = ArrowTableSupport::createRelTableFromArrowTable(connection, tableName,
301 srcTableName, dstTableName, std::move(schema), std::move(arrays));
302 ASSERT_TRUE(result.queryResult->isSuccess()) << result.queryResult->getErrorMessage();
303}
304
305void createComplexArrowCityTable(main::Connection& connection,
306 const std::string& tableName = "city") {

Callers 2

TEST_FFunction · 0.85
SetUpMethod · 0.85

Calls 5

makeKnowsSchemaFunction · 0.70
makeKnowsBatchFunction · 0.70
push_backMethod · 0.45
isSuccessMethod · 0.45
getErrorMessageMethod · 0.45

Tested by

no test coverage detected