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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to