| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| @Override | ||
| public int getElementEndIndex(int index) { | ||
| return sizeBuffer.getInt(index * OFFSET_WIDTH); | ||
| return offsetBuffer.getInt((index + 1) * OFFSET_WIDTH); |
There was a problem hiding this comment.
Should line 954 be changed together? BTW, are these methods covered by any unit test?
Sorry, something went wrong.
There was a problem hiding this comment.
To answer my 1st question: no.
Sorry, something went wrong.
There was a problem hiding this comment.
I don't see any unit tests for it; and if possible would be worth a small one.
Sorry, something went wrong.
There was a problem hiding this comment.
Yeah, the fact that tests passed means nothing's covering it. Unfortunately the new types were only partially implemented before the contributor left.
Sorry, something went wrong.
There was a problem hiding this comment.
Could add a few basic assertions to testBasicListViewVector https://github.com/apache/arrow-java/blob/main/vector/src/test/java/org/apache/arrow/vector/TestListViewVector.java
Sorry, something went wrong.
There was a problem hiding this comment.
Good suggest. I will add UT for it.
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks!
Sorry, something went wrong.
There was a problem hiding this comment.
Shouldn't the end index be offset + size + 1? (Assuming noninclusive)
Sorry, something went wrong.
|
@joyCurry30 Thank you so much for taking care of this! |
Sorry, something went wrong.
|
I am sorry for silence for so long. I have just add the ut for ListViewVector#getElementEndIndex. Could you please take a look when you are free? I'd be happy to address any feedback or make further improvement if needed. @nbauernfeind @wgtmac |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Close #470