You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "sashapolo (via GitHub)" <gi...@apache.org> on 2024/03/29 09:55:09 UTC

[PR] IGNITE-21862 Rename PK index when renaming a table [ignite-3]

sashapolo opened a new pull request, #3518:
URL: https://github.com/apache/ignite-3/pull/3518

   https://issues.apache.org/jira/browse/IGNITE-21862
   
   Thank you for submitting the pull request.
   
   To streamline the review process of the patch and ensure better code quality
   we ask both an author and a reviewer to verify the following:
   
   ### The Review Checklist
   - [ ] **Formal criteria:** TC status, codestyle, mandatory documentation. Also make sure to complete the following:  
   \- There is a single JIRA ticket related to the pull request.  
   \- The web-link to the pull request is attached to the JIRA ticket.  
   \- The JIRA ticket has the Patch Available state.  
   \- The description of the JIRA ticket explains WHAT was made, WHY and HOW.  
   \- The pull request title is treated as the final commit message. The following pattern must be used: IGNITE-XXXX Change summary where XXXX - number of JIRA issue.
   - [ ] **Design:** new code conforms with the design principles of the components it is added to.
   - [ ] **Patch quality:** patch cannot be split into smaller pieces, its size must be reasonable.
   - [ ] **Code quality:** code is clean and readable, necessary developer documentation is added if needed.
   - [ ] **Tests code quality:** test set covers positive/negative scenarios, happy/edge cases. Tests are effective in terms of execution time and resources.
   
   ### Notes
   - [Apache Ignite Coding Guidelines](https://cwiki.apache.org/confluence/display/IGNITE/Java+Code+Style+Guide)


-- 
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: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] IGNITE-21862 Rename PK index when renaming a table [ignite-3]

Posted by "sashapolo (via GitHub)" <gi...@apache.org>.
sashapolo merged PR #3518:
URL: https://github.com/apache/ignite-3/pull/3518


-- 
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: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] IGNITE-21862 Rename PK index when renaming a table [ignite-3]

Posted by "ibessonov (via GitHub)" <gi...@apache.org>.
ibessonov commented on code in PR #3518:
URL: https://github.com/apache/ignite-3/pull/3518#discussion_r1544324587


##########
modules/catalog/src/main/java/org/apache/ignite/internal/catalog/commands/CatalogUtils.java:
##########
@@ -433,6 +450,23 @@ public static CatalogTableDescriptor tableOrThrow(CatalogSchemaDescriptor schema
         return table;
     }
 
+    /**
+     * Returns a table descriptor of the table with the a given ID.
+     *
+     * @param catalog Catalog to look up the table in.
+     * @param tableId Table ID.
+     * @throws TableNotFoundValidationException If table does not exist.
+     */
+    public static CatalogTableDescriptor tableOrThrow(Catalog catalog, int tableId) throws IndexNotFoundValidationException {

Review Comment:
   ```suggestion
       public static CatalogTableDescriptor tableOrThrow(Catalog catalog, int tableId) throws TableNotFoundValidationException {
   ```



##########
modules/catalog/src/main/java/org/apache/ignite/internal/catalog/commands/CatalogUtils.java:
##########
@@ -413,6 +413,23 @@ public static CatalogSchemaDescriptor schemaOrThrow(Catalog catalog, String name
         return schema;
     }
 
+    /**
+     * Returns a schema descriptor of the schema with the a given ID.
+     *
+     * @param catalog Catalog to look up the schema in.
+     * @param schemaId Schema ID.
+     * @throws CatalogValidationException If schema does not exist.
+     */
+    public static CatalogSchemaDescriptor schemaOrThrow(Catalog catalog, int schemaId) throws IndexNotFoundValidationException {

Review Comment:
   ```suggestion
       public static CatalogSchemaDescriptor schemaOrThrow(Catalog catalog, int schemaId) throws CatalogValidationException {
   ```



-- 
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: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org