You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Mehak Bharagava (Jira)" <ji...@apache.org> on 2020/09/15 20:43:00 UTC

[jira] [Created] (PHOENIX-6135) Timestamp 01-May-2008 ( DD-MM-YYYY HH:MM:SS) format support in Hbase DB

Mehak Bharagava created PHOENIX-6135:
----------------------------------------

             Summary: Timestamp 01-May-2008 ( DD-MM-YYYY HH:MM:SS) format support in Hbase DB
                 Key: PHOENIX-6135
                 URL: https://issues.apache.org/jira/browse/PHOENIX-6135
             Project: Phoenix
          Issue Type: Bug
         Environment: I have a big data stack with Hadoop's HDFS, Apache Spark, Hbase, phoenix, zookeeper. 
            Reporter: Mehak Bharagava


I have a schema in Hbase database which stores 2008-09-06 10:00:08 as follows. 

``

CREATE TABLE CASHTRAIN (id bigint(20), Timestamp timestamp, CONSTRAINT pk PRIMARY KEY (id));

```

But i want my timestamp stored in this format- "01-May-2020 09:00:00". Is it possible? How can it be done? I am pulling this id, timestamp data from REST API and in my getters setters, i have defined timestamp as

```

public class Cash {
 @JsonProperty("id")
 private long id;
 @JsonProperty("timestamp")
 private String timestamp;}

```



--
This message was sent by Atlassian Jira
(v8.3.4#803005)