You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "xtern (via GitHub)" <gi...@apache.org> on 2023/09/11 18:24:04 UTC

[GitHub] [ignite-3] xtern commented on a diff in pull request #2563: IGNITE-20371 Move handlers of index-related commands from CatalogManager

xtern commented on code in PR #2563:
URL: https://github.com/apache/ignite-3/pull/2563#discussion_r1321913576


##########
modules/catalog/src/main/java/org/apache/ignite/internal/catalog/descriptors/CatalogTableDescriptor.java:
##########
@@ -96,6 +101,10 @@ public int zoneId() {
         return zoneId;
     }
 
+    public int primaryKeyId() {
+        return primaryKeyId;

Review Comment:
   * Personally I prefer `pkIndexId` for the variable name and `primaryKeyIndexId()` for this method 
   * It looks strange that we have pkColumns and pkIndexId at the same time, as far as I understand, we can always check that it is a PK index if it consists of the 'pkColumns', right? ...Or vice-versa, we should be able to get a list of pk columns by pkIndexId.



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