CatalogService catalog = getQueryTaskContext().getQueryMasterContext().getWorkerContext().getCatalog();
LogicalPlanner planner = new LogicalPlanner(catalog);
LogicalOptimizer optimizer = new LogicalOptimizer();
Expr expr;
if (queryContext.isHiveQueryMode()) {
HiveConverter hiveConverter = new HiveConverter();
expr = hiveConverter.parse(sql);
} else {
SQLAnalyzer analyzer = new SQLAnalyzer();
expr = analyzer.parse(sql);
}
LogicalPlan plan = null;