class SetSessionPlan implements Plan {

    private static final Logger LOGGER = LogManager.getLogger(SetSessionPlan.class);

    private final List<Assignment<Symbol>> settings;

    private final SessionSettingRegistry sessionSettingRegistry;

    public SetSessionPlan(List<Assignment<Symbol>> settings, SessionSettingRegistry sessionSettingRegistry) {
        this.settings = settings;
        this.sessionSettingRegistry = sessionSettingRegistry;
    }

    @Override
    public StatementType type() {
        return StatementType.MANAGEMENT;
    }

    @Override
    public void executeOrFail(DependencyCarrier executor,
                              PlannerContext plannerContext,
                              RowConsumer consumer,
                              Row params,
                              SubQueryResults subQueryResults) throws Exception {<FILL_FUNCTION_BODY>}

    @VisibleForTesting
    static void ensureNotGlobalSetting(String settingName) {
        List<String> nameParts = CrateSettings.settingNamesByPrefix(settingName);
        if (nameParts.size() != 0) {
            throw new IllegalArgumentException(String.format(
                Locale.ENGLISH,
                "GLOBAL Cluster setting '%s' cannot be used with SET SESSION / LOCAL",
                settingName));
        }
    }
}


        Function<? super Symbol, Object> eval = x -> SymbolEvaluator.evaluate(
            plannerContext.transactionContext(),
            plannerContext.nodeContext(),
            x,
            params,
            subQueryResults
        );

        var sessionSettings = plannerContext.transactionContext().sessionSettings();
        Assignment<Symbol> assignment = settings.get(0);
        String settingName = eval.apply(assignment.columnName()).toString();
        SessionSetting<?> sessionSetting = sessionSettingRegistry.settings().get(settingName);
        if (sessionSetting == null) {
            LOGGER.info("SET SESSION STATEMENT WILL BE IGNORED: {}", settingName);
            ensureNotGlobalSetting(settingName);
        } else {
            sessionSetting.apply(sessionSettings, assignment.expressions(), eval);
        }
        consumer.accept(InMemoryBatchIterator.empty(SENTINEL), null);
    
<no_super_class>