wesm commented on PR #13557:
URL: https://github.com/apache/arrow/pull/13557#issuecomment-1179428442
I added some checks to prevent the filter implementations from running in
the 0-length chunked array cases, and a different filter test started failing:
```R
test_that("[ accepts Arrays and otherwise handles bad input", {
vec <- 11:20
a <- Array$create(vec)
ind <- c(9, 3, 5)
expect_error(
a[Array$create(ind)],
"Cannot extract rows with an Array of type double"
)
expect_as_vector(a[Array$create(ind - 1, type = int8())], vec[ind])
expect_as_vector(a[Array$create(ind - 1, type = uint8())], vec[ind])
expect_as_vector(a[ChunkedArray$create(8, 2, 4, type = uint8())], vec[ind])
filt <- seq_along(vec) %in% ind
expect_as_vector(a[Array$create(filt)], vec[filt])
expect_error(
a["string"],
"Cannot extract rows with an object of class character"
)
})
```
This is good because it's a normal array being filtered, but I'm still
perplexed why #13521 would have caused this.
--
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]