[Vector][ExtensionType] ComplexCopier requires that extension types' holder readers implement getField
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Start by reading ComplexCopier.copy and compare the getField implementations in UuidReaderImpl and VariantReaderImpl with NullableUuidHolderReaderImpl and NullableVariantHolderReaderImpl. Reproduce the NPE with a holder-backed extension reader, then verify that copying no longer requires an inappropriate getField implementation for holders.
Written by the indexing model from the issue text.
Description
Describe the bug, including details regarding any error messages, version, and platform.
https://github.com/apache/arrow-java/pull/892 made efforts to streamline and simplify extension readers and writers. In this, ComplexCopier.copy relies on FieldReader.getField being defined for extension types.
Usages of ComplexCopier.copy with readers backed by vector, e.g., UuidReaderImpl and VariantReaderImpl that do have getField implementation, should be OK (as there is concrete notion of Field). However, if holder readers, namely, NullableUuidHolderReaderImpl or NullableVariantHolderReaderImpl are used this results in an NPE.
Having said that getField method for holder readers appears to be a misnomer as we do not have a notion of a field for the holders. This can be seen from the absence of getField overrides for primitive types.
- Dominant language
- Java
- Stars
- 95
- Forks
- 154
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 9
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/arrow-java
-
Type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/arrow-java#1300 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
apache/arrow-java#1261 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/arrow-java#1236 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/arrow-java#1230 ·
-
Type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
apache/arrow-java#1205 ·
All issues in apache/arrow-java
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
[BUG]茶杯方块在取茶时会引发崩溃 Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
1.0.0-alpha2 Type/Improvement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
wso2/dpdp-accelerator#272 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
area/frontend
Difficulty 2/5 1-3 hours Newbie friendliness 65/100