File tree Expand file tree Collapse file tree 1 file changed +11
-14
lines changed
core/src/main/java/org/apache/calcite/rel/rel2sql Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -313,22 +313,19 @@ public Result visit(Join e) {
313313
314314 if (dialect .shouldWrapNestedJoin (e )) {
315315
316- if (dialect .shouldWrapNestedJoin (e )) {
317- Set <String > usedNames = new HashSet <>(e .getRowType ().getFieldNames ());
318-
319- // Add both left and right aliases
320- if (leftResult .neededAlias != null ) {
321- usedNames .add (leftResult .neededAlias );
322- }
323- if (rightResult .neededAlias != null ) {
324- usedNames .add (rightResult .neededAlias );
325- }
316+ Set <String > usedNames = new HashSet <>(e .getRowType ().getFieldNames ());
317+ // Add both left and right aliases
318+ if (leftResult .neededAlias != null ) {
319+ usedNames .add (leftResult .neededAlias );
320+ }
321+ if (rightResult .neededAlias != null ) {
322+ usedNames .add (rightResult .neededAlias );
323+ }
326324
327- String safeAlias =
328- SqlValidatorUtil .uniquify ("t" , usedNames , SqlValidatorUtil .EXPR_SUGGESTER );
325+ String safeAlias =
326+ SqlValidatorUtil .uniquify ("t" , usedNames , SqlValidatorUtil .EXPR_SUGGESTER );
329327
330- rightResult = wrapNestedJoin (rightResult , e .getRight (), safeAlias );
331- }
328+ rightResult = wrapNestedJoin (rightResult , e .getRight (), safeAlias );
332329 }
333330
334331 final Context leftContext = leftResult .qualifiedContext ();
You can’t perform that action at this time.
0 commit comments