Class DrillSqlWorker
java.lang.Object
org.apache.drill.exec.planner.sql.DrillSqlWorker
-
Method Summary
Modifier and TypeMethodDescriptionstatic PhysicalPlan
getPlan
(QueryContext context, String sql) Converts sql query string into query physical plan.static PhysicalPlan
getPlan
(QueryContext context, String sql, Pointer<String> textPlan) Converts sql query string into query physical plan.
-
Method Details
-
getPlan
Converts sql query string into query physical plan.- Parameters:
context
- query contextsql
- sql query- Returns:
- query physical plan
- Throws:
ForemanSetupException
-
getPlan
public static PhysicalPlan getPlan(QueryContext context, String sql, Pointer<String> textPlan) throws ForemanSetupException Converts sql query string into query physical plan. Catches various exceptions and converts them into user exception when possible.- Parameters:
context
- query contextsql
- sql querytextPlan
- text plan- Returns:
- query physical plan
- Throws:
ForemanSetupException
-