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

Function createComplexArrowLivesInTable

test/api/arrow_rel_table_test.cpp:316–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316void createComplexArrowLivesInTable(main::Connection& connection,
317 const std::string& tableName = "livesin", const std::string& srcTableName = "person",
318 const std::string& dstTableName = "city") {
319 auto schema = makeLivesInSchema();
320 std::vector<ArrowArrayWrapper> arrays;
321 arrays.push_back(makeLivesInBatch(getLivesInBatch0()));
322 arrays.push_back(makeLivesInBatch(getLivesInBatch1()));
323 auto result = ArrowTableSupport::createRelTableFromArrowTable(connection, tableName,
324 srcTableName, dstTableName, std::move(schema), std::move(arrays));
325 ASSERT_TRUE(result.queryResult->isSuccess()) << result.queryResult->getErrorMessage();
326}
327
328void createComplexNativePersonTable(main::Connection& connection,
329 const std::string& tableName = "person") {

Callers 1

TEST_FFunction · 0.85

Calls 5

makeLivesInSchemaFunction · 0.70
makeLivesInBatchFunction · 0.70
push_backMethod · 0.45
isSuccessMethod · 0.45
getErrorMessageMethod · 0.45

Tested by

no test coverage detected