use of io.confluent.ksql.parser.tree.LogicalBinaryExpression in project ksql by confluentinc.
the class ExpressionFormatterTest method shouldFormatLogicalBinaryExpression.
@Test
public void shouldFormatLogicalBinaryExpression() {
final LogicalBinaryExpression expression = new LogicalBinaryExpression(LogicalBinaryExpression.Type.AND, new StringLiteral("a"), new StringLiteral("b"));
assertThat(ExpressionFormatter.formatExpression(expression), equalTo("('a' AND 'b')"));
}
Aggregations