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

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   In our doc, we didn't support create a clickhouse table with Auto-increment 
columns through gravitino API.
   But I can create a table with "autoIncrement": true  in column, it response 
Status code: 200
   
   It's expected to throw unsupported message, response 400/405
   
   <img width="1433" height="487" alt="Image" 
src="https://github.com/user-attachments/assets/6a29331c-2f80-46df-b106-0e6ec742d9f9";
 />
   
   <img width="1083" height="951" alt="Image" 
src="https://github.com/user-attachments/assets/408ce0f2-f4f1-4890-a2e5-176c5ac999ce";
 />
   
   ### Error message and/or stacktrace
   
   N/A
   
   ### How to reproduce
   
   Create a Click House table:
   ```
   URL: 
http://127.0.0.1:18090/api/metalakes/clickhouse_test/catalogs/ck_catalog1/schemas/ck_db/tables
   
   Status code: 200
   
   Content Type: application/json
   
   Request Headers
   Accept=application/vnd.gravitino.v1+json
   Authorization=Basic YW5vbnltb3VzOnRlc3Q=
   Content-Type=application/json
   Content Body
   {
       "name": "auto_inc_table2",
       "comment": "Invalid table with auto-increment column",
       "columns": [
           {
               "name": "id",
               "type": "integer",
               "comment": "ID",
               "nullable": false,
               "autoIncrement": true
           },
           {
               "name": "data",
               "type": "string",
               "comment": "Data",
               "nullable": false
           }
       ],
       "properties": {
           "engine": "MergeTree"
       },
       "sortOrders": [
           {
               "sortTerm": {
                   "type": "field",
                   "fieldName": [
                       "id"
                   ]
               },
               "direction": "asc",
               "nullOrdering": "nulls_first"
           }
       ]
   }
   ```
   
   ### 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