You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Micah Kornfield (Jira)" <ji...@apache.org> on 2021/05/30 03:02:00 UTC

[jira] [Resolved] (ARROW-12310) [Java] ValueVector#getObject should support covariance for complex types

     [ https://issues.apache.org/jira/browse/ARROW-12310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Micah Kornfield resolved ARROW-12310.
-------------------------------------
    Fix Version/s: 5.0.0
       Resolution: Fixed

Issue resolved by pull request 9964
[https://github.com/apache/arrow/pull/9964]

> [Java] ValueVector#getObject should support covariance for complex types
> ------------------------------------------------------------------------
>
>                 Key: ARROW-12310
>                 URL: https://issues.apache.org/jira/browse/ARROW-12310
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Java
>            Reporter: Liya Fan
>            Assignee: Liya Fan
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 5.0.0
>
>          Time Spent: 2h 10m
>  Remaining Estimate: 0h
>
> Currently, the {{ValueVector#getObject}} API supports covariance for primitive types.
> For example, {{IntVector#getObject}} returns {{Integer}} while {{BitVector#getObject}} returns {{Boolean}}.
> For complex types, we should also support covariance. For example, {{ListVector#getObject}} should return a {{List}}
> This will help reduce unnecessary casts, and enforce type safety. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)