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

Function createCsrNodeTable

test/api/arrow_drop_table_test.cpp:218–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218void createCsrNodeTable(main::Connection& connection, const std::string& tableName = "csr_node") {
219 std::vector<ArrowArrayWrapper> arrays;
220 arrays.push_back(makeCsrNodeBatch({{0, "Alpha", 10, DATE_2020_01_01, {1, 2}},
221 {1, "Beta", 20, DATE_2021_01_01, {3}}, {2, "Gamma", 30, DATE_2022_01_01, {1, 2, 3}}}));
222 arrays.push_back(makeCsrNodeBatch(
223 {{3, "Delta", 40, DATE_2023_01_01, {4}}, {4, "Epsilon", 50, DATE_2024_01_01, {4, 5}}}));
224 auto result = ArrowTableSupport::createViewFromArrowTable(connection, tableName,
225 makeCsrNodeSchema(), std::move(arrays));
226 ASSERT_TRUE(result.queryResult->isSuccess()) << result.queryResult->getErrorMessage();
227}
228
229void createCsrRelTable(main::Connection& connection, const std::string& tableName = "csr_knows",
230 const char* weightName = "weight") {

Callers 1

TEST_FFunction · 0.85

Calls 5

makeCsrNodeBatchFunction · 0.70
makeCsrNodeSchemaFunction · 0.70
push_backMethod · 0.45
isSuccessMethod · 0.45
getErrorMessageMethod · 0.45

Tested by

no test coverage detected