public int submitQuery(DrillClient client, String plan, String type, String format, int width) throws Exception {
PrintingResultsListener listener;
String[] queries;
QueryType queryType;
type = type.toLowerCase();
switch(type) {
case "sql":
queryType = QueryType.SQL;
queries = plan.trim().split(";");