private static void renameDimensions(IntermediateOperation operation, DimensionRenamer renamer, Set<String> processed) {
        if (processed.contains(operation.name())) {
            return;
        }
        if (operation.type().isPresent()) {
            operation.inputs().forEach(input -> renameDimensions(input, renamer, processed));
            operation.renameDimensions(renamer);
            processed.add(operation.name());
        }
    }
Find dimension names to avoid excessive renaming while evaluating the model.
model-integration/src/main/java/ai/vespa/rankingexpression/importer/IntermediateGraph.java