Moelf commented on issue #418: URL: https://github.com/apache/arrow-julia/issues/418#issuecomment-1501204277
it works but users have to be extremely careful: ```julia julia> [tbl2.x[i] for i in eachindex(tbl2.x)] == collect(tbl2.x) true julia> [tbl2.y[i] for i in eachindex(tbl2.y)] == collect(tbl2.y) true julia> [tbl2.y[i] for i in eachindex(tbl2.x)] == collect(tbl2.y) false julia> [tbl2.x[i] for i in eachindex(tbl2.y)] == collect(tbl2.x) false ``` the last 2 lines break because `SentinelArrays.IndexIterator` which only happens when the table have multiple batches. Notice, if the user remembered to use `eachindex(tbl2.x, tbl2.y)` it would normalize to `OneTo(6)` and everything would be fine. But the problem is neither of the last 2 lines threw error, just silently corrupted result -- 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]
