[Bug report] Create nullable column with value 'ture', return 'false' about mysql table #5721
Labels
0.8.0
Release v0.8.0
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
Version
main branch
Describe what's wrong
autoIncrement
column can not be null, need to throw an exceptionError message and/or stacktrace
N/A
How to reproduce
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
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
The text was updated successfully, but these errors were encountered: