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

Function createComplexArrowCityTable

test/api/arrow_rel_table_test.cpp:305–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305void createComplexArrowCityTable(main::Connection& connection,
306 const std::string& tableName = "city") {
307 auto schema = makeCitySchema();
308 std::vector<ArrowArrayWrapper> arrays;
309 arrays.push_back(makeCityBatch(getCityBatch0()));
310 arrays.push_back(makeCityBatch(getCityBatch1()));
311 auto result = ArrowTableSupport::createViewFromArrowTable(connection, tableName,
312 std::move(schema), std::move(arrays));
313 ASSERT_TRUE(result.queryResult->isSuccess()) << result.queryResult->getErrorMessage();
314}
315
316void createComplexArrowLivesInTable(main::Connection& connection,
317 const std::string& tableName = "livesin", const std::string& srcTableName = "person",

Callers 1

TEST_FFunction · 0.85

Calls 5

makeCitySchemaFunction · 0.70
makeCityBatchFunction · 0.70
push_backMethod · 0.45
isSuccessMethod · 0.45
getErrorMessageMethod · 0.45

Tested by

no test coverage detected