@Test public void analysis() { String sql = "SELECT * FROM test0"; Statement statement = parser.createStatement(sql); if (statement instanceof Query) { Query q = (Query) statement; System.out.println("it is a query"); System.out.println(q.toString()); List<? extends Node> children = q.getChildren(); System.out.println("children:"); for (Node n : children) { System.out.println(n.toString()); } PlanNode node = parseQuery(q); if (q.getOrderBy().isPresent()) { node = parseOrderBy(node, q.getOrderBy().get()); } } System.out.println(statement.toString()); }
public Plan analysis(Statement stmt) { return null; }
SemanticAnalysis { public Plan analysis(Statement stmt) { return null; } }
SemanticAnalysis { public Plan analysis(Statement stmt) { return null; }  }
SemanticAnalysis { public Plan analysis(Statement stmt) { return null; }  Plan analysis(Statement stmt); }
SemanticAnalysis { public Plan analysis(Statement stmt) { return null; }  Plan analysis(Statement stmt);  }