| 191 | } |
| 192 | |
| 193 | void createPersonTable(main::Connection& connection, const std::string& tableName = "person") { |
| 194 | std::vector<ArrowArrayWrapper> arrays; |
| 195 | arrays.push_back(makePersonBatch( |
| 196 | {{1, "Alice", 25, DATE_2020_01_01, {100, 200}}, {2, "Bob", 30, DATE_2021_01_01, {300}}, |
| 197 | {3, "Carol", 40, DATE_2022_01_01, {100, 200, 300}}})); |
| 198 | arrays.push_back(makePersonBatch( |
| 199 | {{4, "Dave", 50, DATE_2023_01_01, {400, 500}}, {5, "Eve", 35, DATE_2024_01_01, {100}}})); |
| 200 | auto result = ArrowTableSupport::createViewFromArrowTable(connection, tableName, |
| 201 | makePersonSchema(), std::move(arrays)); |
| 202 | ASSERT_TRUE(result.queryResult->isSuccess()) << result.queryResult->getErrorMessage(); |
| 203 | } |
| 204 | |
| 205 | void createKnowsTable(main::Connection& connection, const std::string& tableName = "knows", |
| 206 | const char* weightName = "weight") { |
no test coverage detected