private void handleGlobalLet(OSelectExecutionPlan result, QueryPlanningInfo info, OCommandContext ctx, boolean profilingEnabled) { if (info.globalLetClause != null) { List<OLetItem> items = info.globalLetClause.getItems(); for (OLetItem item : items) { if (item.getExpression() != null) { result.chain(new GlobalLetExpressionStep(item.getVarName(), item.getExpression(), ctx, profilingEnabled)); } else { result.chain(new GlobalLetQueryStep(item.getVarName(), item.getQuery(), ctx, profilingEnabled)); } info.globalLetPresent = true; } } }