use of io.confluent.ksql.execution.interpreter.terms.Term in project ksql by confluentinc.
the class TermCompiler method visitComparisonExpression.
@Override
public Term visitComparisonExpression(final ComparisonExpression node, final Context context) {
final Term left = process(node.getLeft(), context);
final Term right = process(node.getRight(), context);
return ComparisonInterpreter.doComparison(node.getType(), left, right);
}
use of io.confluent.ksql.execution.interpreter.terms.Term in project ksql by confluentinc.
the class TermCompiler method visitCast.
@Override
public Term visitCast(final Cast node, final Context context) {
final Term term = process(node.getExpression(), context);
final SqlType from = term.getSqlType();
final SqlType to = node.getType().getSqlType();
return CastInterpreter.cast(term, from, to, ksqlConfig);
}
Aggregations