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

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   in Mysql catalog, when create a table with Decimal(0,0) type column, it turn 
out to be created as decimal(10,0) column type
   in Iceberg catalog, when create a table with Decimal(0,0) type column, table 
created.
   in Postgres catalog and Hive catalog,  create a table with Decimal(0,0) type 
column isn't allowed
   <img width="1334" alt="image" 
src="https://github.com/apache/gravitino/assets/154112360/a8355271-913c-4f69-af1d-6e90ec8c6ba8";>
   <img width="1325" alt="image" 
src="https://github.com/apache/gravitino/assets/154112360/01b333a0-e4e0-4f00-ad1c-98ec6d8d13d3";>
   
   
   ### Error message and/or stacktrace
   
   N/A
   
   ### How to reproduce
   
   1. create Mysql catalog, create Iceberg catalog
   2. create table with Decimal(0,0) column type 
   request body
   ```
   {
     "name": "test3",
     "comment": "test",
     "columns": [
       {
         "name": "id",
         "type": "integer",
         "comment": "integer column",
         "nullable": true
       },
       {
         "name": "amount",
         "type": "Decimal(0,0)",
         "comment": "Decimal column",
         "nullable": true
       }]
   }
   ```
   It should be allowed to create the table having this column type
   
   ### 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