AliRana30 opened a new pull request, #49086:
URL: https://github.com/apache/arrow/pull/49086
## **Rationale for this change**
"table.cc" : constructor crashes if the first column is null because it
attempts to call `columns[0]->length()` before any validation logic can run.
## **What changes are included in this PR?**
Added a null check for the first column in the constructor logic:
```cpp
if (columns.size() == 0 || !columns[0]) {
num_rows_ = 0;
} else {
num_rows_ = columns[0]->length();
}
## **Are these changes tested?**
Verified with existing unit tests.
## **Are there any user-facing changes?**
No.
Closes #49079
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]