xiaozcy commented on code in PR #7502:
URL: https://github.com/apache/gravitino/pull/7502#discussion_r2181968001


##########
core/src/main/java/org/apache/gravitino/storage/relational/mapper/provider/base/ModelVersionMetaBaseSQLProvider.java:
##########
@@ -172,8 +182,24 @@ public String updateModelVersionMeta(
         + "AND version = #{oldModelVersionMeta.modelVersion} "
         + "AND model_version_comment = 
#{oldModelVersionMeta.modelVersionComment} "
         + "AND model_version_properties = 
#{oldModelVersionMeta.modelVersionProperties} "
-        + "AND model_version_uri = #{oldModelVersionMeta.modelVersionUri} "

Review Comment:
   As you said before,  multiple URIs of one model version will have multiple 
records. When updating fields other than URIs, all records should be updated. 
However, when updating URIs, only the corresponding records need to be updated. 
Therefore, only the fields other than the URI will be updated here, and the 
update of URIs needs to be handled separately.



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