use of io.confluent.ksql.parser.tree.Explain in project ksql by confluentinc.
the class AstBuilder method visitExplain.
@Override
public Node visitExplain(SqlBaseParser.ExplainContext ctx) {
SqlBaseParser.QualifiedNameContext qualifiedName = ctx.qualifiedName();
String queryId = null;
if (qualifiedName != null) {
queryId = qualifiedName.getText();
}
Statement statement = null;
if (ctx.statement() != null) {
statement = (Statement) visit(ctx.statement());
}
return new Explain(queryId, statement, false, Arrays.asList());
}