You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Junegunn Choi (JIRA)" <ji...@apache.org> on 2016/06/21 04:15:58 UTC

[jira] [Created] (PHOENIX-3013) TO_CHAR fails to handle indexed null value

Junegunn Choi created PHOENIX-3013:
--------------------------------------

             Summary: 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


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)