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

Function createComplexCsrNodeTable

test/api/arrow_csr_rel_table_test.cpp:133–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133void createComplexCsrNodeTable(main::Connection& connection,
134 const std::string& tableName = "csr_node") {
135 auto schema = makeCsrNodeSchema();
136 std::vector<ArrowArrayWrapper> arrays;
137 arrays.push_back(makeCsrNodeBatch(getCsrNodeBatch0()));
138 arrays.push_back(makeCsrNodeBatch(getCsrNodeBatch1()));
139 auto result = ArrowTableSupport::createViewFromArrowTable(connection, tableName,
140 std::move(schema), std::move(arrays));
141 ASSERT_TRUE(result.queryResult->isSuccess()) << result.queryResult->getErrorMessage();
142}
143
144void createComplexCsrRelTable(main::Connection& connection, bool withBwd = false,
145 bool splitIndices = false, bool splitIndptr = false, const std::string& tableName = "csr_knows",

Callers 1

TEST_FFunction · 0.85

Calls 5

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

Tested by

no test coverage detected