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

Junegunn Choi updated PHOENIX-3013:
-----------------------------------
    Attachment: PHOENIX-3013.patch

> TO_CHAR fails to handle indexed null value
> ------------------------------------------
>
>                 Key: PHOENIX-3013
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3013
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Junegunn Choi
>            Assignee: Junegunn Choi
>         Attachments: PHOENIX-3013.patch
>
>
> h3. Steps to reproduce
> {code:sql}
> create table t (id integer primary key, ts1 timestamp, ts2 timestamp);
> create index t_ts2_idx on t (ts2);
> upsert into t values (1, null, null);
> -- OK
> select to_char(ts1) from t;
> -- java.lang.IllegalArgumentException: Unknown class: <null>
> select to_char(ts2) from t;
> {code}



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

Reply via email to