phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Taylor (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-3624) Empty array element returned with immutable encoding scheme
Date Fri, 03 Feb 2017 04:20:51 GMT

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

James Taylor commented on PHOENIX-3624:
---------------------------------------

+1

> Empty array element returned with immutable encoding scheme
> -----------------------------------------------------------
>
>                 Key: PHOENIX-3624
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3624
>             Project: Phoenix
>          Issue Type: Sub-task
>            Reporter: Mujtaba Chohan
>            Assignee: Samarth Jain
>         Attachments: PHOENIX-3624.patch, PHOENIX-3624_v2.patch
>
>
> {noformat}
> CREATE TABLE regions (region_name VARCHAR PRIMARY KEY,zip VARCHAR ARRAY[10]) IMMUTABLE_ROWS=true;
> UPSERT INTO regions(region_name,zip) VALUES('SF Bay Area',ARRAY['94115','94030','94125']);
> {noformat}
> Selecting any element of zip array doesn't work for immutable encoded table (works fine
with mutable encoding)
> {noformat}
> SELECT zip[2] FROM regions;
> +---------------------+
> | ARRAY_ELEM(ZIP, 2)  |
> +---------------------+
> |                     |
> +---------------------+
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message