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



##########
File path: 
modules/core/src/main/java/org/apache/ignite/internal/processors/query/QueryUtils.java
##########
@@ -557,6 +557,9 @@ public static QueryTypeCandidate 
typeForQueryEntity(GridKernalContext ctx, Strin
                         if (!F.isEmpty(qryEntity.getKeyFields()) && 
qryEntity.getKeyFields().contains(affField0)) {
                             affField = affField0;
 
+                            if (desc.aliases().containsKey(affField))
+                                affField = desc.aliases().get(affField);

Review comment:
       ```suggestion
                               affField = desc.aliases().getOrDefault(affField, 
affField);
   ```




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