pratham76 opened a new issue, #13681:
URL: https://github.com/apache/gluten/issues/13681
### Backend
VL (Velox)
### Bug description
`VeloxColumnarBatch::compose` (`cpp/velox/memory/VeloxColumnarBatch.cc`)
builds one batch from several by concatenating their columns. The composed
`RowVector` is created with no row nulls (`nullptr`), so each input is checked
for row nulls:
```cpp
for (const auto& batch : batches) {
GLUTEN_CHECK(batch->getType() == kType, ...);
if (numRows == -1) {
numRows = batch->numRows();
continue; // the first batch never reaches the check
below
}
if (batch->numRows() != numRows) { throw ... }
auto vb = std::dynamic_pointer_cast<VeloxColumnarBatch>(batch);
auto rv = vb->getRowVector();
GLUTEN_CHECK(rv->nulls() == nullptr, "Vectors to compose contain null
bits");
}
```
The `continue` on the first iteration skips the check. If the **first**
batch has row nulls, they are silently dropped from the result instead of
raising the error that any later batch would get, so null rows come back as
non-null.
`compose` is reached from `VeloxColumnarBatchJniWrapper.compose` and
`repeatedThenCompose` (used by `ColumnarPartialProjectExec`,
`ColumnarPartialGenerateExec` and `ExecUtil`).
### Expected behavior
Row nulls in any input batch, including the first, are rejected with
"Vectors to compose contain null bits".
### Gluten version
main branch
### Spark version
Spark-3.5.x
### Spark configurations
_No response_
### System information
_No response_
### Relevant logs
```bash
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]