LauraXia123 opened a new issue, #5721: URL: https://github.com/apache/gravitino/issues/5721
### Version main branch ### Describe what's wrong 1. Create nullable column with value 'true', return 'false' about mysql table 2. If `autoIncrement ` column can not be null, need to throw an exception ### Error message and/or stacktrace N/A ### How to reproduce 1. Create nullable column with value 'true', autoIncrement with value `true` `curl 'http://0.0.0.0:8090/api/metalakes/metalake_demo/catalogs/catalog_mysql/schemas/db/tables' \ -H 'Accept: application/vnd.gravitino.v1+json' \ -H 'Accept-Language: zh-CN,zh;q=0.9' \ -H 'Cache-Control: no-cache' \ -H 'Connection: keep-alive' \ -H 'Content-Type: application/json;charset=UTF-8' \ -H 'Pragma: no-cache' \ --data-raw '{"name":"table4","comment":"","columns":[{"name":"col","type":"integer","nullable":true,"comment":"","autoIncrement":true}],"properties":{"engine":"InnoDB"},"indexes":[{"indexType":"unique_key","name":"col","fieldNames":[["col"]]}]}' \ --insecure` 2. Return nullable column with value 'false' `{ "code": 0, "table": { "name": "table4", "comment": "", "columns": [ { "name": "col", "type": "integer", "nullable": false, "autoIncrement": true } ], "properties": { "engine": "InnoDB" }, "audit": { "creator": "anonymous", "createTime": "2024-12-02T07:56:50.306454916Z", "lastModifier": "anonymous", "lastModifiedTime": "2024-12-02T07:56:51.937079781Z" }, "distribution": { "strategy": "none", "number": 0, "funcArgs": [] }, "sortOrders": [], "partitioning": [], "indexes": [ { "indexType": "UNIQUE_KEY", "name": "col", "fieldNames": [ [ "col" ] ] } ] } }` ### 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]
