presto-main/src/main/java/io/prestosql/execution/SqlQueryExecution.java/SqlQueryExecution/planQuery
class SqlQueryExecution:    private PlanRoot planQuery()
    {
        try {
            return doPlanQuery();
        }
        catch (StackOverflowError e) {
            throw new PrestoException(NOT_SUPPORTED, "statement is too large (stack overflow during analysis)", e);
        }
    }