Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ public static QueryBinaryProperty buildBinaryProperty(GridKernalContext ctx, Str

fullName.append(prop);

String alias = aliases.get(fullName.toString());
String alias = aliases.get(fullName.toString()) == null ? fullName.toString() : aliases.get(fullName.toString());
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do aliases.get(fullName.toString()); twice?
Suggestion:

String alias = aliases.get(fullName.toString());
if (alias == null) {
            alias = fullName.toString();
}


// The key flag that we've found out is valid for the whole path.
res = new QueryBinaryProperty(ctx, prop, res, resType, isKeyField, alias, notNull, dlftVal,
Expand Down