| 1438 | } // namespace arrow |
| 1439 | |
| 1440 | arrow::Status check_consistent_column_length( |
| 1441 | const std::vector<std::shared_ptr<arrow::ChunkedArray>>& columns) { |
| 1442 | if (columns.size()) { |
| 1443 | int64_t num_rows = columns[0]->length(); |
| 1444 | |
| 1445 | for (const auto& column : columns) { |
| 1446 | if (column->length() != num_rows) { |
| 1447 | return arrow::Status::Invalid("All columns must have the same length"); |
| 1448 | } |
| 1449 | } |
| 1450 | } |
| 1451 | |
| 1452 | return arrow::Status::OK(); |
| 1453 | } |
| 1454 | |
| 1455 | // [[arrow::export]] |
| 1456 | std::shared_ptr<arrow::Table> Table__from_dots(SEXP lst, SEXP schema_sxp, |
no test coverage detected