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

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   Add a column with default value, but the default value turn to NULL in 
Postgres and MySQL table on new GUI.
   
   <img width="1512" height="902" alt="Image" 
src="https://github.com/user-attachments/assets/44f6057c-e9e0-4b43-a0cf-6dd3a287037a";
 />
   
   Missing default value's definition in request body:
   
   ```
   {
     "updates": [
       {
         "@type": "addColumn",
         "fieldName": [
           "amountcolumn5"
         ],
         "type": "integer",
         "comment": "amount",
         "nullable": true,
         "defaultValue": {
           "type": "literal",
           "dataType": "integer",
           "value": "1024"
         }
       }
     ]
   }
   ```
   
   ### Error message and/or stacktrace
   
   see above
   
   
   
   ### How to reproduce
   
   Add a column with default value in MySQL or Postgres table 
   
   ### 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