| 216 | } |
| 217 | |
| 218 | void 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 | |
| 229 | void createCsrRelTable(main::Connection& connection, const std::string& tableName = "csr_knows", |
| 230 | const char* weightName = "weight") { |
no test coverage detected