New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARROW-6079: [Java] Implement/test UnionFixedSizeListWriter for FixedSizeListVector #4973
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4973 +/- ##
==========================================
+ Coverage 87.55% 89.71% +2.15%
==========================================
Files 1000 670 -330
Lines 142303 99543 -42760
Branches 1418 0 -1418
==========================================
- Hits 124589 89301 -35288
+ Misses 17352 10242 -7110
+ Partials 362 0 -362
Continue to review full report at Codecov.
|
writeListVector(writer1, new int[] {7, 8, 9}); | ||
writer1.setValueCount(3); | ||
|
||
assertEquals(3, vector1.getValueCount()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a way to avoid string comparison?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, fixed now.
Seems mostly OK to me, not an expert on this area @praveenbingo do you have time to a take a look? |
@tianchen92 - could you please re-trigger the tests, looks unrelated but just to be double sure. |
Sure, thank you. I also think it's unrelated since I only change the tests. |
@praveenbingo build passed :) |
+1, merging. Thank you @tianchen92 |
…izeListVector Related to [ARROW-6079](https://issues.apache.org/jira/browse/ARROW-6079). Now we have two list vectors: ListVector and FixedSizeListVector. ListVector has already implemented UnionListWriter for writing data, however, FixedSizeListVector doesn't have this yet and seems the only way for users to write data is getting inner vector and set value manually. Implement a writer for FixedSizeListVector is useful in some cases. Closes apache#4973 from tianchen92/ARROW-6079 and squashes the following commits: ad18d1c <tianchen> fix test to avoid string comparision d3338c7 <tianchen> ARROW-6079: Implement/test UnionFixedSizeListWriter for FixedSizeListVector Authored-by: tianchen <niki.lj@alibaba-inc.com> Signed-off-by: Micah Kornfield <emkornfield@gmail.com>
Related to ARROW-6079.
Now we have two list vectors: ListVector and FixedSizeListVector.
ListVector has already implemented UnionListWriter for writing data, however, FixedSizeListVector doesn't have this yet and seems the only way for users to write data is getting inner vector and set value manually.
Implement a writer for FixedSizeListVector is useful in some cases.