MCPcopy Create free account
hub / github.com/apache/arrow / check_consistent_column_length

Function check_consistent_column_length

r/src/r_to_arrow.cpp:1440–1453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1438} // namespace arrow
1439
1440arrow::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]]
1456std::shared_ptr<arrow::Table> Table__from_dots(SEXP lst, SEXP schema_sxp,

Callers 1

Table__from_dotsFunction · 0.85

Calls 4

InvalidClass · 0.50
OKFunction · 0.50
sizeMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected