Search in sources :

Example 1 with Explain

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());
}
Also used : Statement(io.confluent.ksql.parser.tree.Statement) Explain(io.confluent.ksql.parser.tree.Explain)

Aggregations

Explain (io.confluent.ksql.parser.tree.Explain)1 Statement (io.confluent.ksql.parser.tree.Statement)1