You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Alex Warshavsky (JIRA)" <ji...@apache.org> on 2015/04/16 01:50:58 UTC

[jira] [Commented] (PHOENIX-1872) Support PrimitiveBooleanPhoenixArray when creating PhoenixArray from Boolean[]

    [ https://issues.apache.org/jira/browse/PHOENIX-1872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14497329#comment-14497329 ] 

Alex Warshavsky commented on PHOENIX-1872:
------------------------------------------

[~jamestaylor] I was wondering if it was intentional not to support conversion to PrimitiveBooleanArray instead of using PhoenixArray of Boolean[]? It could just be an omission by mistake which is my guess.

> Support PrimitiveBooleanPhoenixArray when creating PhoenixArray from Boolean[]
> ------------------------------------------------------------------------------
>
>                 Key: PHOENIX-1872
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1872
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Alex Warshavsky
>            Priority: Minor
>              Labels: newbie
>
> Currently, when phoenix array is created from a boolean array, PhoenixArray in instantiated instead of PrimitiveBooleanPhoenixArray.
> PArrayDataType.instantiatePhoenixArray(type, Boolean[] \{true, false});
> Other scalar/primitive types implement PhoenixArrayFactory to take advantage of primitive arrays. E.g. 
> PArrayDataType.instantiatePhoenixArray(type, Integer[] \{1,2});
> returns PrimitiveIntPhoenixArray.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)