Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-3013

TO_CHAR fails to handle indexed null value

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.8.0
    • Labels:
      None

      Description

      Steps to reproduce

      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;
      

        Attachments

          Activity

            People

            • Assignee:
              junegunn Junegunn Choi
              Reporter:
              junegunn Junegunn Choi
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: