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


##########
web-v2/web/src/lib/utils/index.js:
##########
@@ -186,6 +237,13 @@ export const genUpdates = (originalData, newData, 
disableUpdate = false) => {
           nullable: newColumnsMap[key].nullable
         })
       }
+      if (Boolean(originalColumnsMap[key].autoIncrement) !== 
Boolean(newColumnsMap[key].autoIncrement)) {
+        updates.push({
+          '@type': 'updateColumnAutoIncrement',
+          fieldName: [newColumnsMap[key].name],

Review Comment:
   Addressed in commit 27aa29330. Instead of modifying connector behavior, I 
added a UI-level safeguard for MySQL. When a user renames an existing 
AutoIncrement column and disables AutoIncrement in the same save, the operation 
is blocked with guidance to perform the rename and disabling in separate saves.
   
   Added unit tests covering the conflicting operation and the allowed 
individual operations.



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