ayush786hack commented on code in PR #14917:
URL: https://github.com/apache/gravitino/pull/14917#discussion_r4645665788


##########
web-v2/web/src/lib/utils/index.js:
##########
@@ -190,6 +256,18 @@ export const genUpdates = (originalData, newData, 
disableUpdate = false) => {
           nullable: newColumnsMap[key].nullable
         })
       }
+      const newAutoIncrement = newColumnsMap[key].autoIncrement
+      if (
+        newAutoIncrement !== undefined &&
+        newAutoIncrement !== null &&
+        Boolean(originalColumnsMap[key].autoIncrement) !== 
Boolean(newAutoIncrement)
+      ) {
+        updates.push({

Review Comment:
   Fixed in c9ecba537. The editor now blocks changing AutoIncrement and the 
comment on the same column in one save on MySQL and OceanBase. It asks users to 
save the AutoIncrement change first. The MySQL browser regression reloads the 
stored column after both saves and checks that AutoIncrement is off and the new 
comment persisted. The test compiled locally on Windows, where Gravitino skips 
Docker tests.



##########
web-v2/web/src/app/catalogs/rightContent/CreateTableDialog.js:
##########
@@ -597,6 +609,16 @@ export default function CreateTableDialog({ ...props }) {
     form
       .validateFields()
       .then(async () => {
+        if (provider === 'jdbc-mysql' && 
hasMySQLAutoIncrementRenameConflict(cacheData?.columns, values?.columns)) {

Review Comment:
   Fixed in c9ecba537. The rename safeguard now covers both `jdbc-mysql` and 
`jdbc-oceanbase`. The warning asks users to disable AutoIncrement and save it 
first, then reopen the editor to rename the column. Added an explicit 
`jdbc-oceanbase` regression case. All 35 focused web tests passed.



-- 
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