FourFriends commented on code in PR #6574: URL: https://github.com/apache/gravitino/pull/6574#discussion_r1999977655
########## core/src/main/java/org/apache/gravitino/storage/relational/mapper/provider/base/CatalogMetaBaseSQLProvider.java: ########## @@ -74,6 +74,15 @@ public String selectCatalogMetaByMetalakeIdAndName( + " WHERE metalake_id = #{metalakeId} AND catalog_name = #{catalogName} AND deleted_at = 0"; } + public String selectCatalogIdByMetalakeNameAndCatalogName( + @Param("metalakeName") String metalakeName, @Param("catalogName") String catalogName) { + return "SELECT me.metalake_id as metalakeId, ca.catalog_id as catalogId FROM " + + TABLE_NAME + + " ca INNER JOIN metalake_meta me ON ca.metalake_id = me.metalake_id" Review Comment: We have confirmed that this join has no impact on internal usage at Xiaomi. -- 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: commits-unsubscr...@gravitino.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org