LauraXia123 opened a new issue, #5691:
URL: https://github.com/apache/gravitino/issues/5691

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   1. Create Timestamp type, return Timestamp_tz type about doris table 
   2. Doris doesn't support Gravitino `Timestamp_tz`  type. 
   
   
   ### Error message and/or stacktrace
   
   N/A
   
   ### How to reproduce
   
   1. Create doris table by curl below(colum type: timestamp):
   `curl 
'http://0.0.0.0:8090/api/metalakes/metalake_demo/catalogs/doris/schemas/schema/tables'
 \
     -H 'Accept: application/vnd.gravitino.v1+json' \
     -H 'Cache-Control: no-cache' \
     -H 'Connection: keep-alive' \
     -H 'Content-Type: application/json;charset=UTF-8' \
     --data-raw 
'{"name":"table3","comment":"","columns":[{"name":"col","type":"timestamp","nullable":true,"comment":""}],"properties":{},"partitioning":[{"strategy":"range","fieldName":["col"]}],"distribution":{"strategy":"hash","number":32,"funcArgs":[{"type":"field","fieldName":["col"]}]}}'
 \
     --insecure`
   
   
   2. Return the `timestamp_tz` type of doris table
   `{
       "code": 0,
       "table": {
           "name": "table3",
           "comment": "",
           "columns": [
               {
                   "name": "col",
                   "type": "timestamp_tz",
                   "nullable": true,
                   "autoIncrement": false,
                   "defaultValue": {
                       "type": "literal",
                       "dataType": "null",
                       "value": "NULL"
                   }
               }
           ],
           "properties": {
               "disable_auto_compaction": "false",
               "replication_allocation": "tag.location.default: 1",
               "storage_format": "V2",
               "in_memory": "false"
           },
           "audit": {
               "creator": "anonymous",
               "createTime": "2024-11-27T09:03:57.614606972Z",
               "lastModifier": "anonymous",
               "lastModifiedTime": "2024-11-27T09:03:58.099734686Z"
           },
           "distribution": {
               "strategy": "hash",
               "number": 32,
               "funcArgs": [
                   {
                       "type": "field",
                       "fieldName": [
                           "col"
                       ]
                   }
               ]
           },
           "sortOrders": [],
           "partitioning": [
               {
                   "strategy": "range",
                   "fieldName": [
                       "col"
                   ],
                   "assignments": []
               }
           ],
           "indexes": []
       }
   }`
   
   
   
   ### Additional context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to