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

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   <img width="1415" height="796" alt="Image" 
src="https://github.com/user-attachments/assets/8d8ae188-a976-488b-a7ed-2840d635c8b4";
 />
   
   ### Error message and/or stacktrace
   
   The table  api support the table loaded. But the UI validate failed.
   
   
http://192.168.194.249:8090/api/metalakes/test/catalogs/catalog_mysql/schemas/gravitino/tables/user_role_rel?_t=1768204714553
   
   ```
   {
       "code": 0,
       "table": {
           "name": "user_role_rel",
           "comment": "user role relation",
           "columns": [
               {
                   "name": "id",
                   "type": "long unsigned",
                   "comment": "auto increment id",
                   "nullable": false,
                   "autoIncrement": true
               },
               {
                   "name": "user_id",
                   "type": "long unsigned",
                   "comment": "user id",
                   "nullable": false,
                   "autoIncrement": false
               },
               {
                   "name": "role_id",
                   "type": "long unsigned",
                   "comment": "role id",
                   "nullable": false,
                   "autoIncrement": false
               },
               {
                   "name": "audit_info",
                   "type": {
                       "type": "external",
                       "catalogString": "MEDIUMTEXT"
                   },
                   "comment": "relation audit info",
                   "nullable": false,
                   "autoIncrement": false
               },
               {
                   "name": "current_version",
                   "type": "integer unsigned",
                   "comment": "relation current version",
                   "nullable": false,
                   "autoIncrement": false,
                   "defaultValue": {
                       "type": "literal",
                       "dataType": "integer unsigned",
                       "value": "1"
                   }
               },
               {
                   "name": "last_version",
                   "type": "integer unsigned",
                   "comment": "relation last version",
                   "nullable": false,
                   "autoIncrement": false,
                   "defaultValue": {
                       "type": "literal",
                       "dataType": "integer unsigned",
                       "value": "1"
                   }
               },
               {
                   "name": "deleted_at",
                   "type": "long unsigned",
                   "comment": "relation deleted at",
                   "nullable": false,
                   "autoIncrement": false,
                   "defaultValue": {
                       "type": "literal",
                       "dataType": "long unsigned",
                       "value": "0"
                   }
               }
           ],
           "properties": {
               "engine": "InnoDB"
           },
           "audit": {},
           "distribution": {
               "strategy": "none",
               "number": 0,
               "funcArgs": []
           },
           "sortOrders": [],
           "partitioning": [],
           "indexes": [
               {
                   "indexType": "PRIMARY_KEY",
                   "name": "PRIMARY",
                   "fieldNames": [
                       [
                           "id"
                       ]
                   ]
               },
               {
                   "indexType": "UNIQUE_KEY",
                   "name": "uk_ui_ri_del",
                   "fieldNames": [
                       [
                           "user_id"
                       ],
                       [
                           "role_id"
                       ],
                       [
                           "deleted_at"
                       ]
                   ]
               }
           ]
       }
   }
   ```
   
   ### How to reproduce
   
   1. Open the UI
   2. register the gravitino db as a mysql catalog
   3. load a existed table  "user_role_rel" in gravitino db, 
   4. click the table's edit button
   
   ### 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