class SqlLogicalPlanView {

    public String getLogicalPlanView(String sql) {
        sql = sql.replace("explain ","").replace("EXPLAIN ","");
        QueryTables tables = SqlUtil.parseTableName(sql);
        tableNames = tables.tableNames;
        environment.setTransformRunner(RunnerType.JDBC);

        LOGGER.debug("Parsed table names for upper SQL are: {}", tableNames);
        QueryProcedure procedure = createQueryPlan(sql);
        return getQueryProcedureLogicalView(procedure);
    }

    private  SqlLogicalPlanView();

}