Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#5950] feat(catalog-model): Add integration tests for model API #6051

Merged
merged 8 commits into from
Jan 2, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve the style
  • Loading branch information
jerryshao committed Jan 2, 2025
commit 23e81149421eb9c215980492d713070ab1133b24
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ public String softDeleteModelVersionAliasRelsByModelIdAndAlias(
+ " mvar JOIN ("
+ " SELECT model_version FROM "
+ ModelVersionAliasRelMapper.TABLE_NAME
+ " WHERE model_id = #{modelId} AND model_version_alias = #{alias} AND deleted_at = 0"
+ ") subquery ON mvar.model_version = subquery.model_version"
+ " WHERE model_id = #{modelId} AND model_version_alias = #{alias} AND deleted_at = 0)"
+ " subquery ON mvar.model_version = subquery.model_version"
+ " SET mvar.deleted_at = (UNIX_TIMESTAMP() * 1000.0)"
+ " + EXTRACT(MICROSECOND FROM CURRENT_TIMESTAMP(3)) / 1000"
+ " WHERE mvar.model_id = #{modelId} AND mvar.deleted_at = 0";
Expand Down
Loading