presto-main/src/main/java/io/prestosql/execution/QueryStateMachine.java/QueryStateMachine/transitionToPlanning
class QueryStateMachine:    public boolean transitionToPlanning()
    {
        queryStateTimer.beginPlanning();
        return queryState.setIf(PLANNING, currentState -> currentState.ordinal() < PLANNING.ordinal());
    }