use of io.confluent.ksql.metastore.KsqlStdOut in project ksql by confluentinc.
the class Analyzer method visitTable.
@Override
protected Node visitTable(final Table node, final AnalysisContext context) {
StructuredDataSource into;
if (node.isStdOut) {
into = new KsqlStdOut(KsqlStdOut.KSQL_STDOUT_NAME, null, null, null, StructuredDataSource.DataSourceType.KSTREAM);
} else if (context.getParentType() == AnalysisContext.ParentType.INTO) {
into = analyzeNonStdOutTable(node);
} else {
throw new KsqlException("INTO clause is not set correctly!");
}
analysis.setInto(into);
return null;
}
Aggregations