You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2021/09/08 13:55:42 UTC

[GitHub] [ignite] timoninmaxim commented on a change in pull request #9338: IGNITE-15263 Fix QuerySqlField.alias for affinity field

timoninmaxim commented on a change in pull request #9338:
URL: https://github.com/apache/ignite/pull/9338#discussion_r704443500



##########
File path: modules/core/src/main/java/org/apache/ignite/internal/processors/query/QueryUtils.java
##########
@@ -578,6 +581,9 @@ public static QueryTypeCandidate typeForQueryEntity(GridKernalContext ctx, Strin
                     ((GridCacheDefaultAffinityKeyMapper)keyMapper).affinityKeyPropertyName(desc.keyClass());
 
                 if (affField != null) {
+                    if (desc.aliases().containsKey(affField))
+                        affField = desc.aliases().get(affField);

Review comment:
       @AMashenkov , hi! Thanks for review. Applied both suggestions with an even additional improvement.




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